I wrote a simple code to start off with Joyplots on Matplotlib. Here's the entire code:
import random
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt import joypy
random.seed(4554)
randomlist = random.sample(range(100,10000),1000)
randomyear = np.linspace(1018,2018,num=1001)
df=pd.DataFrame(list(zip(randomyear,randomlist)),columns=['Year','Values'])
fig, axes = joypy.joyplot(df, by="Year", column="Values",figsize=(5,8))
plt.show()
I keep getting this error:
ValueError: `dataset` input should have multiple elements.
What does this mean, what am I doing wrong, and how do I fix this code?