reticulate, run python code problem

Hi Team,
I'm trying to run python code in Rstudio using reticulate package. when I run the code below, I got error message:

py_run_string(my_report = sweetviz.compare([car, "manufacturer"], [test, "drv"], "cty"))
Error: unexpected '[' in "py_run_string(my_report = sweetviz.compare(["

I have two questions:

  1. car is R data set, can I use it directly in python code?
  2. would you please help me to fix the sample code above?

Thank you,
Kai

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.