【发布时间】:2021-09-13 08:11:02
【问题描述】:
熊猫系列如何划分:
d = {'a': ('a','ball'), 'b': ('b','cat'), 'c': ('c','plane')}
ser = pd.Series(data=d, index=['a', 'b', 'c'])
ser
a (a, ball)
b (b, cat)
c (c, plane)
dtype: object
进入熊猫数据框,如:
Index Value
a ball
b cat
c plane
【问题讨论】: