Feature request: uniform dataframe output
This is actually a feature request. It would be nice for the dataframe representation of objects to be more unifiorm. For example:
The equilibrator_pathway.mdf_solution.PathwayMdfSolution
object has 2 methods for displaying dataframes, compound_df
and reaction_df
, both of which give useful output in a consistent format.
I would expect that the equilibrator_pathway.thermo_models.ThermodynamicModel
object would also have the compound_df
and reaction_df
methods, although possibly missing a few columns that are generated during the MDF solution.
The equilibrator_api.phased_reaction.PhasedReaction
object has a get_element_data_frame
method. I would have expected this to be named element_df
and to give the transposed version as output. It would also be useful if a human-readable abbreviation was included in addition to the inchi_key (maybe both the get_accession
and get_common_name
information).
equilibrator_api.model.bounds.Bounds.to_data_frame()
could be equilibrator_api.model.bounds.bounds_df
Finally, in some cases you get a dataframe as an attribute object.xxx_df
, and in some cases you get it as a function object.get_xxx_df()
.
If these are not high on your priority list, I could try addressing them myself, although I might need some assistance to make sure nothing else gets broken in the process.