Im trying to make a line plot with dataframe columns as the x axis and row 1 as y axis

fig = px.line(dft,
              x=dft.columns,
              y=dft.iloc[0].values,
              render_mode='webgl'
)

fig.show()

but instead it gives me this error,
“All arguments should have the same length. The length of argument y is 3648, whereas the length of previously-processed arguments [‘index’] is 4079”

Hey @ahmadleepadilla welcome to the forums.

Unfortunately it’s impossible to help you without information on your DataFrame. Maybe you can include some data to make this error reproducible.

That seems right, but I don’t understand how it’s possible to have a pandas dataframe with len(df.columns) not equal to len(df.iloc[0].values)