我无法打印特定状态的详细信息。
代码:
import pandas as pd
file1 = r'D:\Work\Projects\COVID-19\covid_19_data.csv'
df = pd.read_csv(file1)
df1 = df.loc[df['State'] == 'Hubei', ['State', 'Date', 'Confirmed', 'Deaths']]
print (df1.head())
bins = np.linspace(min(df1), max(df1), 4)
print(df1)
group = ["Mild","Severe","Critical"]
df1['Hubei-binned'] = pd.cut(df1, bins, labels=group, include_lowest = True)