df2schema

This module is used to create a HedSchema object from a set of .tsv files.

Functions

load_dataframes_from_strings(schema_data)

Load the given strings/dataframes as dataframes.

load_dataframes_from_strings(schema_data)[source]

Load the given strings/dataframes as dataframes.

Parameters:

schema_data (dict) – The dict of files(strings or pd.DataFrames) key being constants like TAG_KEY

Returns:

A dict with the same keys as schema_data, but values are dataframes if not before

Return type:

schema_data(dict)

Classes

SchemaLoaderDF(filenames, ...[, name])

Load dataframe schemas from filenames