标签:reset you val dataframe ram pandas panda show xlsx
import pandas as pd
import plotly_express as px
df=pd.read_excel(‘leyoujia.xlsx‘)
zone = pd.DataFrame(df["zone"].value_counts()).reset_index()
zone
fig = px.pie(zone,names="index",values="zone")
fig.show()
zone:
标签:reset you val dataframe ram pandas panda show xlsx
原文地址:https://www.cnblogs.com/fm-yangon/p/14041452.html