plot all columns from dataframe without having to define them in plotly

With version 4.8 of Plotly.py, you can now plot this kind of data directly from PX:

import plotly.express as px 
import pandas as pd 

df = pd.DataFrame({
    'ID': ['1','2','3'],
    'A': ['15','21','30'],
    'M': ['12','24','31'],
    'I': ['28','32','10']})


fig = px.line(df, x='ID', y=df.columns)
fig.show()