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
Bug Report #1555
Comments
Hi @ronfisher21 , can you please test with the latest version of the package? We have just double checked, and we are able to extract the information of the compare report with no errors. Example of the code used: og_df = pd.read_csv('sample_data/california_housing_train.csv') report = ProfileReport(og_df, title='Train dataset houses') compare = report.compare(report_test) #using a variable to store the Json output #storing the json output as a file Attach you can see the json. |
Current Behaviour
Hi my code is pretty simple, i read 2 parquet file, created 2 reports for each pandas dataframes and used the compare method to generate a compare method. I tried to use the 'to_json()' method to convert my report to json and i got the following error:
"TypeError: to_dict() got an unexpected keyword argument 'orient'"
I saw that you already resolved this issue in:
fix: comparison to_json pd.Series encoding error #1538
I ungraded the package to the latest version and i still get the same error.
Expected Behaviour
I expected to convert my report to a json successfuly.
Data Description
The datasets i am using are confidential but the data format is parquet.
Code that reproduces the bug
pandas-profiling version
v4.6.4
Dependencies
OS
ubuntu
Checklist
The text was updated successfully, but these errors were encountered: