lyse.dataframe_utilities

Functions

asdatetime(timestr)

concat_with_padding(*dataframes)

Concatenates dataframes with MultiIndex column labels, padding shallower hierarchies such that the MultiIndexes have the same nlevels.

flat_dict_to_flat_series(dictionary)

flat_dict_to_hierarchical_dataframe(dictionary)

Make all the keys tuples of the same length

flatten_dict(dictionary[, keys])

Takes a nested dictionary whose keys are strings, and returns a flat dictionary whose keys are tuples of strings, each element of which is the key for one level of the hierarchy.

get_dataframe_from_shot(filepath)

get_dataframe_from_shots(filepaths)

get_nested_dict_from_shot(filepath)

get_series_from_shot(filepath)

pad_columns(df, n)

Add depth to hiererchical column labels with empty strings

replace_with_padding(df, row, index)