mdf_reader.reader.get_sections

Module Contents

Functions

extract_data()

add_next_children()

add_higher_group_children()

add_children()

add_static_children()

add_dynamic_children()

extract_sections(string_df)

main(string_df, schema, read_sections)

Returns a pandas dataframe with a report per row

extract_data()[source]
add_next_children()[source]
add_higher_group_children()[source]
add_children()[source]
add_static_children()[source]
add_dynamic_children()[source]
extract_sections(string_df)[source]
main(string_df, schema, read_sections)[source]

Returns a pandas dataframe with a report per row and the report sections split along the columns. Each section is a block string and only the sections listed in read_sections parameter are output.

Parameters
  • string_df (pandas.DataFrame) – Pandas dataframe with a unique column with the reports as a block string

  • schema (dict) – Data source data model schema

  • read_sections (list) – Sections to output from the complete report

Returns

Dataframe with the report sections split along the columns.

Return type

pandas.DataFrame