Do this: df['Segment'] = df.Segment.astype('category'). Which returns RangeIndex: 9994 entries, 0 to 9993 Data columns (total 13 columns): ...
確定! 回上一頁