We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I try to import pickle file in markdown:
{python} import os import pandas as pd from pathlib import Path
input_data_path = 'D:/path'
X_train = pd.read_pickle(os.path.join(Path(input_data_path), 'X_train.pkl')) X_test = pd.read_pickle(os.path.join(Path(input_data_path), 'X_test.pkl')) y_train = pd.read_pickle(os.path.join(Path(input_data_path), 'y_train.pkl')) y_test = pd.read_pickle(os.path.join(Path(input_data_path), 'y_test.pkl')) labeling_info = pd.read_pickle(os.path.join(Path(input_data_path), 'labeling_info.pkl'))
{r} X_train <- py$X_train
it returns an error: Error in py_get_attr_impl(x, name, silent) : AttributeError: 'DataFrame' object has no attribute '_data'
The same code works in python.
The text was updated successfully, but these errors were encountered:
Can you please provide a reproducible example?
Sorry, something went wrong.
No branches or pull requests
When I try to import pickle file in markdown:
{python}
import os
import pandas as pd
from pathlib import Path
input_data_path = 'D:/path'
IMPORT PREPARED DATA
X_train = pd.read_pickle(os.path.join(Path(input_data_path), 'X_train.pkl'))
X_test = pd.read_pickle(os.path.join(Path(input_data_path), 'X_test.pkl'))
y_train = pd.read_pickle(os.path.join(Path(input_data_path), 'y_train.pkl'))
y_test = pd.read_pickle(os.path.join(Path(input_data_path), 'y_test.pkl'))
labeling_info = pd.read_pickle(os.path.join(Path(input_data_path), 'labeling_info.pkl'))
{r}
X_train <- py$X_train
it returns an error:
Error in py_get_attr_impl(x, name, silent) :
AttributeError: 'DataFrame' object has no attribute '_data'
The same code works in python.
The text was updated successfully, but these errors were encountered: