electiondata
electiondata copied to clipboard
Scatter plot bug - values doubled when comparing identical counts
In the scatter plot, if the same values for x and y axis are chosen, the values in the output double. This is because we pull the same data twice which gets concatenated into a single dataframe. This dataframe is used to calculate all the data, so now we have twice the counts included.