Mar-25-2021, 06:46 PM
You may need to import matplotlib,
then
then
for my_df in df_array : my_df = my_df.reset_index(drop=True) my_df = my_df[my_df['state'].isin(['IDLE_ERROR', 'PARTLY_UP', 'UP'])] my_df.plot.pie(y = 'state', figsize = (6,6))