Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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')
Source by datatofish.com #
 
PREVIOUS NEXT
Tagged: #pandas #save #dataframe #list
ADD COMMENT
Topic
Name
6+6 =