Edit page in Livemark
(2023-01-25 11:55)

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()