Multiple Plots using a For Loop

I just started with two days ago, so I apologize my limited knowledge of the software.
I wrote some that create an array of dataframes that I need to plot. I manged to have multiple plots on matplotlib and can create a single plot on My main problem multiple lots using a for loop.
M code :
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import plotly.graph_objects as go

dfc = {} # Create an arrray, and in this case an array of dataframes
meterNumber = df.iloc[:,0].unique() # Finds all the meternumbers in the column
for x in range(len(meterNumber)): #Iterate through meterNumber
dfc[x] = df[df.iloc[:,0]== meterNumber[x]] # Create new dataframes

#for x in range(len(meterNumber)): #previous cde


for i in range(len(meterNumber)):
fig[i] = go.Figure([go.Bar(x=df.columns, y=dfc[i])])
The error:
AttributeError Traceback (most recent call last)
18 for i in range(len(meterNumber)):
β€”> 19 fig[i] = go.Figure([go.Bar(x=df.columns, y=dfc[i])])

~/Downloads/Desktop/lib/python3.7/site-packages/plotly/ in setitem(self, prop, value)
299 # Convert into a property tuple
300 orig_prop = prop
–> 301 prop = BaseFigure._str_to_dict_path(prop)
303 # Handle empty case

~/Downloads/Desktop/lib/python3.7/site-packages/plotly/ in _str_to_dict_path(key_path_str)
1211 # Split string on periods.
1212 # e.g. β€˜foo.bar_baz[1]’ -> [β€˜foo’, β€˜bar_baz[1]’]
-> 1213 key_path = key_path_str.split(".")
1215 # Split out bracket indexes.

AttributeError: β€˜int’ object has no attribute β€˜split’

I am lost in this portion.
Than you fr the help