metad.connectors.dataframe module

Classes

DataFrameConnector(tables)

Import data from pandas DataFrames.

class metad.connectors.dataframe.DataFrameConnector(tables)[source]

Bases: metad.connectors.base.BaseConnector

Import data from pandas DataFrames.

The DataFrameConnector allows you to import data from pandas DataFrames. It automatically populates the tables and fields; it also infers the data types from the data.

Methods

export_metadata(path_to_json)

Write the metadata to a JSON file.

export_tables(path_to_output)

Write the tables to CSV files.

export_metadata(path_to_json)[source]

Write the metadata to a JSON file.

Parameters

path_to_json (str) – The path to the output JSON.

export_tables(path_to_output)[source]

Write the tables to CSV files.

Parameters

path_to_output (str) – The path to the output directory.