After setting a DataFrame to redis, then getting it back, redis returns a string and I can't figure out a way to convert this str to a DataFrame.
How can I do these two appropriately?
After setting a DataFrame to redis, then getting it back, redis returns a string and I can't figure out a way to convert this str to a DataFrame.
How can I do these two appropriately?
I couldn't use msgpack because of
Decimal
objects in my dataframe. Intead I combined pickle and zlib together like this, assuming a dataframedf
and a local instance of redis:There isn't anything anything dataframe specific about this.
Caveats
msgpack
is better -- use it if it works for youset:
get: