会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
干it的小张
管理
上一页
1
···
9
10
11
12
13
14
15
16
17
···
96
下一页
2021年1月3日
pandas数组用法Series、DataFrame二维框架、逻辑判断query、~翻转、高阶函数iloc和loc
摘要: 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的小张
阅读(444)
评论(0)
推荐(0)
2021年1月2日
用numpy和matplotlib实现共享单车可视化
摘要: 第一季度数据 """ 明确任务:比较共享单车每个季度的平均骑行时间"""import osimport numpy as npimport matplotlib.pyplot as pltdata_path = r'D:\mycode\minidata\bikeshare'data_filename
阅读全文
posted @ 2021-01-02 15:17 干it的小张
阅读(258)
评论(0)
推荐(0)
2021年1月1日
用matplotlib画折线图、垂直柱状图、水平柱状图、饼图
摘要: import matplotlib.pyplot as plt# 用来正常显示中文标签plt.rcParams['font.sans-serif'] = ['SimHei']date = ['2018/7/21', '2018/7/22', '2018/7/23', '2018/7/24', '20
阅读全文
posted @ 2021-01-01 22:09 干it的小张
阅读(476)
评论(0)
推荐(0)
用pandas生成数据透视表
摘要: 原表: import pandas as pdimport numpy as npe_file = pd.ExcelFile(r"D:\mycode\files\7月下旬入库表.xlsx")data = e_file.parse('7月下旬入库表')pt1 = pd.pivot_table(data
阅读全文
posted @ 2021-01-01 21:12 干it的小张
阅读(365)
评论(0)
推荐(0)
用pythondocx批量生成Word文档
摘要: 流程 安装:pip install python-doc -i https://pypi.tuna.tsinghua.edu.cn/simple pip install python-docx from docx import Documentfrom docx.enum.text import W
阅读全文
posted @ 2021-01-01 18:53 干it的小张
阅读(730)
评论(0)
推荐(0)
上一页
1
···
9
10
11
12
13
14
15
16
17
···
96
下一页
公告