Category是把具有相似特性的物料分配到一个类别里。Category set是一组Category的合集。 The complete set up of item categories is done in below 5 steps in sequence. Tables Relationship Related Tables
MTL_CATEGORIES_B is the code combinations table for item cat…
使用pandas的类别相关的方法可以设置和改变数据的类别。
import pandas as pd
import numpy as npdf pd.DataFrame({"id":[1,2,3,4,5,6], "raw_grade":[a, b, b, a, a, e]})
#将raw_grade列转化为category类型
df["grade"] df["raw_grad…
import pandas as pd
import numpy as npdf pd.DataFrame({"id":[1,2,3,4,5,6], "raw_grade":[a, b, b, a, a, e]})
#将raw_grade列转化为category类型
df["grade"] df["raw_grade"].astype("category")
print(df["g…