pythonbook/人与鳄鱼/人与鳄鱼,步骤6 plotly画图.py

10 lines
270 B
Python

import pandas as pd
import plotly.express as px
df = pd.read_csv("p.csv")
fig = px.line(df, x="x", y="y", color="type", title="A Plotly Express Figure")
# If you print the figure, you'll see that it's just a regular figure with data and layout
# print(fig)
fig.show()