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)