0

I have created a data frame from lot of excel files that took about 2 hours by looping to import it in pandas. now I have to work on it in some different times is there any way that I could save it and then load it again efficiently.

raheel
  • 164
  • 7

1 Answers1

0

you can save your pandas data frame and load it any time you want to work on it using. For example:

df1 = pd.DataFrame([['a', 'b'], ['c', 'd']],
               index=['row 1', 'row 2'],
               columns=['col 1', 'col 2'])
df1.to_excel("output.xlsx")  
Ayesha Khan
  • 116
  • 3
  • 9