Skip to content Skip to sidebar Skip to footer

Pandas DataFrame Serialization

I'm having trouble writing the entries of a pandas dataframe to a stringbuffer. It's possible to initialize a dataframe by passing a stringbuffer to the read_csv function. In [80]

Solution 1:

This is pretty much just an oversight / inconsistency. I created a GitHub issue here for it:

https://github.com/wesm/pandas/issues/765

EDIT: Implemented this today so you can pass a StringIO to to_csv, in git master now and will be part of forthcoming 0.7.0 release


Post a Comment for "Pandas DataFrame Serialization"