Edit page in Livemark
(2024-12-13 12:49)

Pandas Format

Frictionless supports reading and writing Pandas dataframes.

pip install frictionless[pandas]
pip install 'frictionless[pandas]' # for zsh shell

Reading Data

You can read a Pandas dataframe:

from frictionless import Resource

resource = Resource(df)
pprint(resource.read_rows())

Writing Data

You can write a dataset to Pandas:

from frictionless import Resource

resource = Resource('table.csv')
df = resource.to_pandas()