You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rather than the interactions map displaying as hexagons of varying shades, the interactions map is only displaying as points that do not vary in shade but will disappear depending on the variables.
Expected Behaviour
The map should allow me to see the varied interactions between variables based on shade and presence
Data Description
My data is a survey assessing perceptions of crime, here is a screenshot of my data
Code that reproduces the bug
importpandasaspd
!pipinstallydata_profilingfromydata_profilingimportProfileReportprofile=ProfileReport(df,title="Perceptions of Crime Survey")
# Save the report to .htmlprofile.to_file("POCSurvey_YesPV.html")
pandas-profiling version
v2.1.4
Dependencies
N/A
OS
Windows 10
Checklist
There is not yet another bug report for this issue in the issue tracker
The problem is reproducible from this bug report. This guide can help to craft a minimal bug report.
The issue has not been resolved by the entries listed under Common Issues.
The text was updated successfully, but these errors were encountered:
This appeared in my code, I hadn't noticed before:
/usr/local/lib/python3.10/dist-packages/ydata_profiling/model/correlations.py:66: UserWarning: There was an attempt to calculate the auto correlation, but this failed.
To hide this warning, disable the calculation
(using df.profile_report(correlations={"auto": {"calculate": False}})
If this is problematic for your use case, please report this as an issue: https://github.com/ydataai/ydata-profiling/issues
(include the error message: 'Function <code object pandas_auto_compute at 0x7a2b874c5420, file "/usr/local/lib/python3.10/dist-packages/ydata_profiling/model/pandas/correlations_pandas.py", line 167>')
warnings.warn(
thank you for your report. regarding the correlation I advise you to open a separate issue, as we will need more details to understand your issue. In general terms, if your data has some behaviors that lead to error in one of the metrics used to compute the auto correlations you will get that error message. More on the correlations in our docs - https://docs.profiling.ydata.ai/latest/advanced_settings/available_settings/#correlations.
Regarding the interactions plot, that is an expected behavior as the number of rows of your dataset is smaller than the size set for the property config.plot.scatter_threshold, leading to the calculation of a scatter instead of a hex plot. You can set a different value by building the config file using a yaml, like the following example https://github.com/ydataai/ydata-profiling/blob/develop/src/ydata_profiling/config_minimal.yaml.
Current Behaviour
Rather than the interactions map displaying as hexagons of varying shades, the interactions map is only displaying as points that do not vary in shade but will disappear depending on the variables.
Expected Behaviour
The map should allow me to see the varied interactions between variables based on shade and presence
Data Description
My data is a survey assessing perceptions of crime, here is a screenshot of my data
Code that reproduces the bug
pandas-profiling version
v2.1.4
Dependencies
OS
Windows 10
Checklist
The text was updated successfully, but these errors were encountered: