Answers for "pandas save dataframe with list"

0

pandas save dataframe with list

"""
  write/read your pandas.DataFrame as a pickle (.pkl) file
  to keep the list data structure
"""

# write
df.to_pickle('path/to/filename.pkl')

# read
df.read_picke('path/to/filename.pkl')
Posted by: Guest on May-17-2021

Code answers related to "pandas save dataframe with list"

Python Answers by Framework

Browse Popular Code Answers by Language