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.
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")
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.