The following code displays the binary contents of an AVRO file as a table in a Jupyter notebook:


import avro.schema, pandas as pd
from avro.datafile import DataFileReader, DataFileWriter
from avro.io import DatumReader, DatumWriter
from tabulate import tabulate

from urllib.request import urlopen
from pandas.io.json import json_normalize

reader = DataFileReader(open("SOME_AVRO_FILE.avro", "rb"),
                        DatumReader())  

df = pd.DataFrame(reader)
print(tabulate(df, headers="firstrow", tablefmt='grid'))