I have two dictionaries that contains two discrete distribution: `A={1: 300, 2: 400, 4: 20,...}` and `B={2: 100, 3: 200 , 4: 75,...}`. I want to check how much symilar they are and I thought of performing two-sample **Kolmogorov-Smirnov test**.

I checked the [scipy function](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ks_2samp.html) but it seems to work only on numpy array, how I could perform it on my data?