magic-cta-pipe is under active development. Expect large and rapid changes in functionality.

save_pandas_data_in_table#

magicctapipe.io.save_pandas_data_in_table(input_data, output_file, group_name, table_name, mode='w')[source]#

Saves a pandas data frame in a table.

Parameters:
input_datapandas.DataFrame

Pandas data frame

output_filestr

Path to an output HDF file

group_namestr

Group name of the table

table_namestr

Name of the table

modestr

Mode of saving the data if a file already exists at the path - “w” for overwriting the file with the new table, and “a” for appending the table to the file