摘要: import pandas as pd 导入数据 pd.read_csv(filename):从CSV文件导入数据pd.read_table(filename):从限定分隔符的文本文件导入数据pd.read_excel(filename):从Excel文件导入数据pd.read_sql(query, 阅读全文
posted @ 2019-11-12 16:44 胸怀丶若谷 阅读(105) 评论(0) 推荐(0) 编辑
摘要: decode:将其他编码的字符串转换成unicode编码,如str1.decode('utf-8'),表示将utf-8的编码转换成unicode编码。 encode:将unicode编码转换成其他编码的字符串,str2.encode('utf-8'),表示将unicode编码的字符串转换成utf-8 阅读全文
posted @ 2019-11-12 11:34 胸怀丶若谷 阅读(112) 评论(0) 推荐(0) 编辑