dotools_py.io.read_parquet

Contents

dotools_py.io.read_parquet#

dotools_py.io.read_parquet(path, filename=None, backend='pandas', **kwargs)[source]#

Read a parquet object into a DataFrame.

Parameters:
path str | PathLike[str] | Path

Directory containing the comma separated file.

filename str (default: None)

Name of the parquet file. If not specified, assume that path contains the full path to the file.

backend Literal['pandas', 'polars'] (default: 'pandas')

Library to use for reading. If "polars" is selected and reading fails, Pandas is used as a fallback.

**kwargs

Additional arguments passed directly to

polars.read_parquet or pandas.read_parquet.

Return type:

DataFrame

Returns:

Returns a pd.DataFrame containing the content from the selected sheet.