Edit page in Livemark
(2022-09-19 18:33)

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()
It's a beta version of Frictionless Framework (v5). Read Frictionless Framework (v4) docs for a version that is currently installed by default by pip.