When using sweetviz.compare() on two identical datasets, we found that the target line plot in numerical graphs would not match up for the final bin. On taking a look at the code we noticed that a step is missed when binning the compare dataset target. In graph_numerical.py we noticed that on line 118 that the step to add data points which fall outside the bin range to the final bin is repeated for the source dataset instead of being carried out for the compare dataset. Swapping this to the compare data set solves the issue.
When using sweetviz.compare() on two identical datasets, we found that the target line plot in numerical graphs would not match up for the final bin. On taking a look at the code we noticed that a step is missed when binning the compare dataset target. In graph_numerical.py we noticed that on line 118 that the step to add data points which fall outside the bin range to the final bin is repeated for the source dataset instead of being carried out for the compare dataset. Swapping this to the compare data set solves the issue.