2020年7月19日

摘要: 1,series.values, seires.index.tolist(), series.items() values、index、items返回的对象分别是List、Index、Zip类型的数据 from pandas import Seriesemp=['001','002','003',' 阅读全文

posted @ 2020-07-19 21:36 青柠2020 阅读(512) 评论(0) 推荐(0)

摘要: 在符合条件下,python中的字符型,元组,列表,集合,字典等数据类型可以相互转化。 1,字符型 >元组 (str >tuple, 字符串中每个字符被拆开保存到元组中) >>> str1 = "This is a new book.">>> tuple(str1)('T', 'h', 'i', 's 阅读全文

posted @ 2020-07-19 09:45 青柠2020 阅读(404) 评论(0) 推荐(0)


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3