I have a large Pandas dataframe with a lot of columns and I need to plot a chart per row.
For now I have this in my code:
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
[...]
df = pd.DataFrame() # DataFrame with 13 columns
for index,row in df.iterrows():
df2 = pd.DataFrame(row)
plt.set_title(row)
plt.bar(df2)
plt.savefig('./plots/chart_' + index)
But the df2 dataframe inside the for loop is empty...

