d = {'col1': [33,34], 'col2': [5,6]} d1 = {'col1': [33,34], 'col2': [5,6]} df = pd.DataFrame(data=d) type(df[['col1']])
上面的类型是一个数据帧,我如何使它成为一个变化最小的序列?
使用单个[]s。
type(df['col1'])
输出:
pandas.core.series.Series