Yesterday I learned the hard way that saving a pandas dataframe to csv for later use is a bad idea. I have a dataframe of +- 130k tweets, where one row of the dataframe is a list of tweets. When I saved the data to CSV and then loaded the dataframe back in, the rows of my dataframes are now of type String. This lead to all kinds of errors and a lot of debugging. Of course it was a stupid mistake to assume that CSV would be able to preserve information about which data structure type my data is.
My question now is: How do I save a dataframe for later use, in a way that information about which data types my columns/rows are is preserved?