mdf_reader.reader.import_data

Module Contents

Functions

main(source, encoding=None, chunksize=None, skiprows=None)

Returns an iterable object with a pandas dataframe from

main(source, encoding=None, chunksize=None, skiprows=None)[source]

Returns an iterable object with a pandas dataframe from an input data source. The pandas dataframe has a report per row and a single column with the full report as a block string. Currently only supports a data file path as source data, but could be easily extended to accept a different source object.

Parameters

source (str) – Path to data file

Keyword Arguments
  • chunksize (int, opt) – Number of lines to chunk the input data into

  • skiprows (int, opt) – Number of lines to skip from input file

Returns

List of with a single pandas dataframe or pandas.io.parsers.textfilereader

Return type

iterable