Skip to content

pd.Catagorical breaks to_msgpack #8632

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kay1793 opened this issue Oct 25, 2014 · 2 comments
Closed

pd.Catagorical breaks to_msgpack #8632

kay1793 opened this issue Oct 25, 2014 · 2 comments
Labels
Categorical Categorical Data Type
Milestone

Comments

@kay1793
Copy link

kay1793 commented Oct 25, 2014

df=pd.DataFrame([[1,'John P. Doe'],[2,'Jane Dove'],[1,'John P. Doe']])
df[1]=pd.Categorical(df[1])
pd.read_msgpack(df.to_msgpack())
KeyError: 100

#8626, #8624

@jreback jreback added Categorical Categorical Data Type Msgpack labels Oct 25, 2014
@jreback jreback added this to the 0.16.0 milestone Oct 25, 2014
@jreback
Copy link
Contributor

jreback commented Oct 25, 2014

named in #7621 so master issue for this

@jreback jreback closed this as completed Oct 25, 2014
jreback pushed a commit that referenced this issue Apr 25, 2016
@iorilu
Copy link

iorilu commented Dec 17, 2016

df=pd.DataFrame([[1,'John P. Doe'],[2,'Jane Dove'],[1,'John P. Doe']])
df[1]=pd.Categorical(df[1])
pd.read_msgpack(df[1].to_msgpack())

seems can't do msgpack on a series with category type
get error :
ValueError: cannot specify a dtype with a Categorical unless dtype='category'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Categorical Categorical Data Type
Projects
None yet
Development

No branches or pull requests

3 participants