Skip to content
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

DEPR/DOC: rpy deprecation #9602

Closed
1 of 5 tasks
jreback opened this issue Mar 6, 2015 · 27 comments · Fixed by #9612
Closed
1 of 5 tasks

DEPR/DOC: rpy deprecation #9602

jreback opened this issue Mar 6, 2015 · 27 comments · Fixed by #9612
Labels
Deprecate Functionality to remove in pandas Dtype Conversions Unexpected or buggy dtype conversions
Milestone

Comments

@jreback
Copy link
Contributor

jreback commented Mar 6, 2015

so we should put up a deprecation notice on rpyimports that in the future the user should use rpy2 directly rather than the less-supported pandas.rpy converters that we can take action say in 0.17.0

discussed extensivley in #7385

xref #7385, #9187 #7309, #8255

@jorisvandenbossche
Copy link
Member

I put some todo's above.

@jreback jreback modified the milestones: 0.16.0, 0.16.1 Mar 23, 2015
@sebp
Copy link

sebp commented Apr 21, 2015

Regarding the second item in the list, rpy2 currently does not handle missing values correctly, a NaN value will remain NaN in R and not be considered a missing value (NA). The function pandas.rpy.common.convert_to_r_dataframe performed the conversion correctly.

@jorisvandenbossche
Copy link
Member

@jreback I moved this to 0.16.1 milestone: I think we should at least have a link the deprecation warning to the docs, where a minimal link is how to port your code. This minimal thing should not be much work, and I will do it this week.

@davclark
Copy link
Contributor

Thanks for highlighting this Aurélien. Is there an issue on the rpy2 issue
tracker for this?
On Jun 16, 2015 10:18 AM, "Aurélien Mazurie, Ph.D." <
notifications@github.com> wrote:

This has been mentioned above already, but the new recommended conversion
method rpy2.robjects.conversion.py2ri (and
rpy2.robjects.pandas2ri.py2ri_pandasdataframe) doesn't handle NaN
correctly. This is a significant problem for which I haven't been able to
find a solution yet. Is there a way to fix this?

Reply to this email directly or view it on GitHub
#9602 (comment).

@datnamer
Copy link

+1

@ajmazurie
Copy link

ajmazurie commented Jun 19, 2015

Not that I know of; or my Google-fu failed me.
Aurelien

@jorisvandenbossche
Copy link
Member

I opened an issue at rpy2 to track this there as well: https://bitbucket.org/rpy2/rpy2/issue/282/missing-features-in-rpy2s-pandas2ri

The solution is to improve rpy2's conversion functions (in fixing them, or porting some of the pandas code to rpy2 if possible), and contributions for this would be very welcome! (but rest assured, the functions in pandas, although deprecated, will not be effectively removed until these issues are solved)

@jreback jreback modified the milestones: Next Major Release, 0.17.0 Aug 20, 2015
@lgautier
Copy link
Contributor

lgautier commented Nov 1, 2015

@jorisvandenbossche The issue in the link (issue 282 on rpy2's issue tracker on bitbucket) has been closed. rpy2 conversion feature set for pandas data frames is arguably ahead ;-).

@datnamer
Copy link

datnamer commented Nov 1, 2015

@lgautier Great! thanks for all your hard work on this and other Rpy2 stuff :)

@jreback
Copy link
Contributor Author

jreback commented Sep 13, 2016

@jorisvandenbossche did we remove this?

@jorisvandenbossche
Copy link
Member

No, we did not yet remove this, because there are (or were, should be checked) still some issues with the rpy2 alternative that were better supported in the pandas version. Needs someone to go over this (but ideally someone who uses pandas.rpy / rpy2).

@jorisvandenbossche jorisvandenbossche modified the milestones: 1.0, Next Major Release Sep 13, 2016
@lgautier
Copy link
Contributor

@jorisvandenbossche Unless the issues are reported in the rpy2 tracker there is a good chance noone will work on them: https://bitbucket.org/rpy2/rpy2/issues?status=new&status=open . If you add a link to an entry in the pandas tracker I can comment back when the issue status is changing (we worked that way for the rmagic before it was moved to rpy2).

@wesm
Copy link
Member

wesm commented Sep 20, 2016

It's my preference to deprecate pandas.rpy and remove in pandas 1.0. I think this can be handled by a 3rd-party package

@jorisvandenbossche
Copy link
Member

@wesm It's already deprecated for a couple of releases, and we indeed should certainly remove it. At the time of deprecation, there were still some issues in rpy2 (things that were handled better in the pandas.rpy code), but as @lgautier notes above, those should be solved nowadays.
I just want to go through those reported issues and check that they are indeed solved / update our migration docs, and then we can remove the module in the next release.

@jorisvandenbossche
Copy link
Member

Was looking into this today, but ran into some issues converting simple dataframes, reported here: https://bitbucket.org/rpy2/rpy2/issues/394/pandas2ripy2ri-on-basic-dataframe-falls

But in any case, will put up a PR to remove the module.

@davclark
Copy link
Contributor

Being gnomish - the above issue has resolved to a documentation issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deprecate Functionality to remove in pandas Dtype Conversions Unexpected or buggy dtype conversions
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants