-
Notifications
You must be signed in to change notification settings - Fork 68
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
Windows/Linux rpy2=3.5.7: Converted pandas dataframe has NA instead of None and throws exception on access the line #979
Comments
Hi, self-contained examples to reproduce are easier on my end. This includes imports, create of test data or objects, etc. This means a example that is a minimal as possible and I can just copy/paste to see what is happening. |
@lgautier |
@lgautier Unfortunately bug still can be reproduced on windows with version 3.5.8. Failed on Windows
See the error in the console log (both for 3.5.8 and 3.5.7):
Expected results:Works fine in: 3.5.3.
|
@lgautier NOTE: The same bug is reproduced on Linux (R-Base Docker Image) with 3.5.8/3.5.7! Failed on LinuxThe next steps are followed:
Package 3.5.3. works fine |
Looks like there is an issue indeed. A patch is normally on the way. |
* Conversion of NA_character_ to numpy string array. (issue #979). * Moved check for NA_character to CharSexp dispatch. * Fixed issue with Converters are context managers.
Describe the issue or bug
Windows rpy2=3.5.3: R returns cells with NA that are converted to None
Windows rpy2=3.5.7: R returns cells with NA_Character instead of None.
tested with a single thread
Attempt to access those values are throwing next error:
"R value for missing character value"
pip install rpy2=3.5.7
Convertor used:
Converted pandas grid:
pip install rpy2=3.5.3
Convertor used:
NA is properly converted:
Test
Expected behavior
NA should be converted to None without any errors accessing a data frame.
Error
A copy of the error message.
R value for missing character value
Additional context
The text was updated successfully, but these errors were encountered: