标签: python pandas dask
我正在用熊猫做这件事,它给了我想要的输出,但是我如何使用dask库实现呢?
import pandas as pd import dask.dataframe as dd df = pd.read_csv("newdata.csv") df["Index"] = df["DAY_OF_WEEK"].str.index("day") print(df)