importerror trying to convert pandas dataframe to R data frame
up vote
0
down vote
favorite
I am attempting to convert some pandas dataframes to R objects for use in rpy2.
I am getting an error when i try to import the conversion the module. from rpy2.robjects import pandas2ri
yields ImportError: cannot import name 're_type'
as follows:
/opt/conda/lib/python3.6/site-packages/pandas/core/dtypes/inference.py in <module>()
6 from collections import Iterable
7 from numbers import Number
----> 8 from pandas.compat import (PY2, string_types, text_type,
9 string_and_binary_types, re_type)
10 from pandas._libs import lib
ImportError: cannot import name 're_type'
I haven't really seen any discussion of this error elsewhere.
in terms of dependencies, i am using pandas 0.23.4
, rpy2 2.9.4
, R 3.4
, and it is running on the docker jupyter container datascience-notebook
Really hoping someone could help me here!
r pandas rpy2
add a comment |
up vote
0
down vote
favorite
I am attempting to convert some pandas dataframes to R objects for use in rpy2.
I am getting an error when i try to import the conversion the module. from rpy2.robjects import pandas2ri
yields ImportError: cannot import name 're_type'
as follows:
/opt/conda/lib/python3.6/site-packages/pandas/core/dtypes/inference.py in <module>()
6 from collections import Iterable
7 from numbers import Number
----> 8 from pandas.compat import (PY2, string_types, text_type,
9 string_and_binary_types, re_type)
10 from pandas._libs import lib
ImportError: cannot import name 're_type'
I haven't really seen any discussion of this error elsewhere.
in terms of dependencies, i am using pandas 0.23.4
, rpy2 2.9.4
, R 3.4
, and it is running on the docker jupyter container datascience-notebook
Really hoping someone could help me here!
r pandas rpy2
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am attempting to convert some pandas dataframes to R objects for use in rpy2.
I am getting an error when i try to import the conversion the module. from rpy2.robjects import pandas2ri
yields ImportError: cannot import name 're_type'
as follows:
/opt/conda/lib/python3.6/site-packages/pandas/core/dtypes/inference.py in <module>()
6 from collections import Iterable
7 from numbers import Number
----> 8 from pandas.compat import (PY2, string_types, text_type,
9 string_and_binary_types, re_type)
10 from pandas._libs import lib
ImportError: cannot import name 're_type'
I haven't really seen any discussion of this error elsewhere.
in terms of dependencies, i am using pandas 0.23.4
, rpy2 2.9.4
, R 3.4
, and it is running on the docker jupyter container datascience-notebook
Really hoping someone could help me here!
r pandas rpy2
I am attempting to convert some pandas dataframes to R objects for use in rpy2.
I am getting an error when i try to import the conversion the module. from rpy2.robjects import pandas2ri
yields ImportError: cannot import name 're_type'
as follows:
/opt/conda/lib/python3.6/site-packages/pandas/core/dtypes/inference.py in <module>()
6 from collections import Iterable
7 from numbers import Number
----> 8 from pandas.compat import (PY2, string_types, text_type,
9 string_and_binary_types, re_type)
10 from pandas._libs import lib
ImportError: cannot import name 're_type'
I haven't really seen any discussion of this error elsewhere.
in terms of dependencies, i am using pandas 0.23.4
, rpy2 2.9.4
, R 3.4
, and it is running on the docker jupyter container datascience-notebook
Really hoping someone could help me here!
r pandas rpy2
r pandas rpy2
asked Nov 10 at 21:39
Ry John
151110
151110
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53243665%2fimporterror-trying-to-convert-pandas-dataframe-to-r-data-frame%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown