adamerose / PandasGUI

A GUI for Pandas DataFrames
MIT No Attribution
3.17k stars 229 forks source link

Save dataframe with edits #165

Closed rblumenowgs closed 3 years ago

rblumenowgs commented 3 years ago

Hi Adam.

Is there a way to save the edited dataframe and pass it back in code? How would I go about that so I can have the manipulated data ready for further processing without going into excel or having to export code steps?

Thanks a lot!

Ryan

adamerose commented 3 years ago

Accessing DataFrames in their modified state is possible like this:

from pandasgui import show
from pandasgui.datasets import pokemon

gui = show(pokemon)

df = gui.get_dataframes()['pokemon']
print(df)