Skip to content

Commit 2a4bd6a

Browse files
committed
Use obj.codes
1 parent 10c0892 commit 2a4bd6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/packers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ def encode(obj):
401401
return {u'typ': u'categorical',
402402
u'klass': u(obj.__class__.__name__),
403403
u'name': getattr(obj, 'name', None),
404-
u'codes': obj._codes,
404+
u'codes': obj.codes,
405405
u'categories': obj.categories,
406406
u'ordered': obj.ordered,
407407
u'compress': compressor}

0 commit comments

Comments
 (0)