Guest User

Untitled

a guest
Jan 24th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. import pandas as pd
  2.  
  3. df = pd.DataFrame({"Col": [[1,2,3], [4,5,6]]})
  4. df.to_pickle(filename)
  5.  
  6. #Read the pickle file
  7. df = pd.read_pickle(filename)
  8. print(df["Col"])
  9. print(df["Col"][0][0])
  10.  
  11. 0 [1, 2, 3]
  12. 1 [4, 5, 6]
  13. Name: Col, dtype: object
  14. 1
Add Comment
Please, Sign In to add comment