I have a dict including different series. Each series has a different length and I am going to have plots of bar chart for them, each in a subplot. Here is the dict:
data = {'df_A': 0 0
1 0
2 0
3 0
4 0
5 14343
6 14343
7 0
8 8107
9 11
10 0
11 2276
12 0
dtype: int64,
'df_B': 0 0
1 0
2 0
3 6692
dtype: int64,
'df_C': 0 323059
1 0
2 0
3 0
dtype: int64}
To have the plot, I run the following code, but I get the error: 'numpy.ndarray' object has no attribute 'bar'
import matplotlib.pyplot as plt
fig, ax = plt.subplots(nrows = 3, ncols = 1)
for i,key in enumerate(data):
ax.bar(range(len(data[key])),list(data[key]))
