上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 96 下一页
摘要: import pandas as pdimport matplotlib.pyplot as plt# 更改设计风格plt.style.use("ggplot")# 用户id、购买日期、购买产品数、购买金额columns = ["user_id", "order_dt", "order_produc 阅读全文
posted @ 2021-01-10 01:10 干it的小张 阅读(195) 评论(0) 推荐(0) 编辑
摘要: import pymysqlimport pandas as pdfrom sqlalchemy import create_engineimport sqlalchemyconn = pymysql.connect( host="127.0.0.1", user="root", password= 阅读全文
posted @ 2021-01-09 02:33 干it的小张 阅读(362) 评论(0) 推荐(0) 编辑
摘要: import pandas as pdimport numpy as npposition = pd.read_csv("D:\mycode\用pandas\data\position.csv", encoding="gbk")company = pd.read_csv("D:\mycode\用pa 阅读全文
posted @ 2021-01-06 21:39 干it的小张 阅读(165) 评论(0) 推荐(0) 编辑
摘要: import pandas as pd# 读取全部文件内容print(pd.read_csv(r"D:\mycode\用pandas\data\dataAnalyst_sql.csv", encoding="gbk", names=list("abcdefg")))print("1, ") # 查看 阅读全文
posted @ 2021-01-06 00:46 干it的小张 阅读(318) 评论(0) 推荐(0) 编辑
摘要: import pandas as pd# 生成数组print(pd.Series([1, 2, 3, 4]))print("1, ") # 查看索引信息print(pd.Series([1, 2, 3, 4]).index)print("2, ") # 有定义的输出print(pd.Series([ 阅读全文
posted @ 2021-01-03 17:09 干it的小张 阅读(422) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 96 下一页