Cleaning: read_results, why do you use DataFrame if you don't?
There: https://gitlab.aip.de/lketzer/platypos/-/blob/master/platypos_package/Planet_class_LoFo14.py#L297
Using DataFrame
just for reading is a bit under utilizing the potential of pandas
. There are plenty of other modules that can read .csv files without creating the entire structure of a DataFrame
behind it.
So I would suggest either to use the DataFrame
further in the program of to use a simpler library to read the .cvs file.
But using the DataFrame
will provide you great features in the rest of the program. read_results
could just return df
.