摘要: 需求:Pandas一个需求:存在一个列表,需要在一个DataFrame中取到以该列表为索引的数据 这里有一个坑, In [103]: s = pd.Series([1, 2, 3]) In [104]: s Out[104]: 0 1 1 2 2 3 dtype: int64当loc[]中的列表包含 阅读全文
posted @ 2021-05-24 08:39 脱离低级趣味 阅读(411) 评论(0) 推荐(0)