In [106]: s = pd.Series(["the University of Notre Dame", ["Berkeley", "Columbia Business School", "Haas"]])
In [107]: s
Out[107]:
0 the University of Notre Dame
1 [Berkeley, Columbia Business School, Haas]
dtype: object
In [110]: s.apply(pd.Series).stack().reset_index(drop=True)
Out[110]:
0 the University of Notre Dame
1 Berkeley
2 Columbia Business School
3 Haas
dtype: object
像这样?在
相关问题 更多 >
编程相关推荐