Выполнение python в R-markdown с использованием пакета reticulate - PullRequest
0 голосов
/ 19 октября 2019

Я хочу использовать профилирование панд в R-markdown, но код не работает!

import numpy 
import pandas 
import pandas_profiling

House_price = pandas.read_csv('C:\\Users\\mohie_eldin\\Desktop\\Data preneur\\train.csv')
House_price.info()
House_price.profile_report(style={'full_width':True})

Этот код дал мне эту ошибку:

Error in py_get_attr_impl(x, name, silent) : 
  AttributeError: module '__main__' has no attribute 'my_python_array'

Profile = pandas_profiling.ProfileReport(House_price) Profile.to_file ("profile.html")

and i tried to replace the last line with this :
```{python}
Profile = pandas_profiling.ProfileReport(House_price)
Profile.to_file("profile.html")

но ничего не произвело вообще, так как я могу это исправить?

...