diff --git a/dev-examples/sbml_import_odes.py b/dev-examples/sbml_import_odes.py index e2aeacc..f630d6a 100644 --- a/dev-examples/sbml_import_odes.py +++ b/dev-examples/sbml_import_odes.py @@ -10,3 +10,7 @@ ) rich.print(to_dict_wo_json_ld(doc)) + +df = doc.to_pandas(doc) + +rich.print(df) diff --git a/dev-examples/sbml_import_reactions.py b/dev-examples/sbml_import_reactions.py index e2aeacc..f630d6a 100644 --- a/dev-examples/sbml_import_reactions.py +++ b/dev-examples/sbml_import_reactions.py @@ -10,3 +10,7 @@ ) rich.print(to_dict_wo_json_ld(doc)) + +df = doc.to_pandas(doc) + +rich.print(df) diff --git a/pyenzyme/__init__.py b/pyenzyme/__init__.py index 2dee72e..c667f15 100644 --- a/pyenzyme/__init__.py +++ b/pyenzyme/__init__.py @@ -48,6 +48,7 @@ def write_enzymeml( EnzymeMLDocument.write = write_enzymeml # noqa: F405 EnzymeMLDocument.from_sbml = classmethod(read_sbml) # noqa: F405 EnzymeMLDocument.to_sbml = to_sbml # noqa: F405 +EnzymeMLDocument.to_pandas = to_pandas # noqa: F405 def sort_by_ld(d: dict) -> dict: