8000 ENH: Handle categorical dtype to/from R by jseabold · Pull Request #9187 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

ENH: Handle categorical dtype to/from R #9187

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
wants to merge 6 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
ENH: Support int8 and int16. [skip-ci]
  • Loading branch information
jseabold committed Jan 2, 2015
commit 620b5edccab803b7b6fa2cd70545189360fc3ec9
4 changes: 4 additions & 0 deletions pandas/rpy/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,8 @@ def convert_to_r_posixct(obj):
np.float32: robj.FloatVector,
np.float: robj.FloatVector,
np.int: robj.IntVector,
np.int8: robj.IntVector,
np.int16: robj.IntVector,
np.int32: robj.IntVector,
np.int64: robj.IntVector,
np.object_: robj.StrVector,
Expand All @@ -292,6 +294,8 @@ def convert_to_r_posixct(obj):
np.float32: robj.NA_Real,
np.float: robj.NA_Real,
np.int: robj.NA_Integer,
np.int8: robj.NA_Integer,
np.int16: robj.NA_Integer,
np.int32: robj.NA_Integer,
np.int64: robj.NA_Integer,
np.object_: robj.NA_Character,
Expand Down
0