module pandashelper.readh

Short summary

module pyquickhelper.pandashelper.readh

Various ways to import data into a dataframe

source on GitHub

Functions

function

truncated documentation

read_csv

Reads a file from a file, it adds the compression zip which was removed in the latest version, see pandas.read_csv. …

Documentation

Various ways to import data into a dataframe

source on GitHub

pyquickhelper.pandashelper.readh.read_csv(filepath_or_buffer, compression=None, fvalid=None, **params)[source][source]

Reads a file from a file, it adds the compression zip which was removed in the latest version, see pandas.read_csv.

Parameters
  • filepath_or_buffer – filepath or buffer

  • compression – see pandas.read_csv

  • params – see pandas.read_csv

  • fvalid – if the zip file contains many files, this function validates which one must be returned based on its name, the function returns the content of the file in that case (bytes)

Returns

dataframe or a dictionary (name, dataframe)

See blog post 2016-02-06 read_csv and zip files.

source on GitHub