使用标准Pandas分类构造函数,我们可以创建一个类别对象。语法如下- pandas.Categorical(values, categories ... import pandas as pd import numpy as np cat = pd.
確定! 回上一頁