Open ronfisher21 opened 6 months ago
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: `import pandas as pd from ydata_profiling import ProfileReport
og_df = pd.read_csv('sample_data/california_housing_train.csv') df = pd.read_csv('sample_data/california_housing_test.csv')
report = ProfileReport(og_df, title='Train dataset houses') report_test = ProfileReport(df, title='Test dataset houses')
compare = report.compare(report_test)
compare_json=compare.to_json()
compare.to_file('compare.json')`
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