会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
myrj
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
19
20
21
22
23
24
25
26
27
···
189
下一页
2023年9月6日
WIN10 快速复制文件的路径(具体路径和文件名)
摘要: WIN10: 按住SHIFT,右击指定文件,选择“复制为路径”
阅读全文
posted @ 2023-09-06 14:33 myrj
阅读(660)
评论(0)
推荐(0)
2023年9月1日
stata 缺失值填充
摘要: //报告输出存在数据缺失的变量及该变量缺失值的个数 cap:ssc install nmissing cap:ssc install fillmissing cap:tssc install nmissing nmissing //with(linear)将缺失值改为相邻值的平均值 fillmiss
阅读全文
posted @ 2023-09-01 09:44 myrj
阅读(2363)
评论(0)
推荐(0)
2023年8月31日
STATA preserve restore交替配合使用
摘要: preserve keep in 1/1048575 save d:\te\安徽1,replace restore preserve keep in 1048576/2000000 save d:\te\安徽2,replace restore keep in 2000000/2583957 save
阅读全文
posted @ 2023-08-31 10:21 myrj
阅读(588)
评论(0)
推荐(0)
2023年8月30日
python ModuleNotFoundError: No module named 'Util'问题解决方案
摘要: ModuleNotFoundError: No module named 'Util' 分两种情况来谈这个问题。 1.第一种是没有安装出现这个问题有如下解决方法: python2安装:pip install web.py python3安装:pip install web.py==0.40-dev1
阅读全文
posted @ 2023-08-30 16:30 myrj
阅读(4897)
评论(0)
推荐(0)
2023年8月28日
python 高效处理EXCEL对比
摘要: #coding=utf-8 import xlwings as xw import pandas as pd import time #记录打开表单开始时间 start_open_time = time.time() #指定不显示地打开Excel,读取Excel文件 app = xw.App(vis
阅读全文
posted @ 2023-08-28 11:14 myrj
阅读(208)
评论(0)
推荐(0)
python pandas 读写csv excel
摘要: 在Python的数据科学和爬虫开发中,pandas是一个非常常用的库,因为它提供了各种操作数据的函数和方法。其中,pandas可以非常方便地处理CSV和Excel文件。 CSV文件操作 CSV(Comma Separated Values)是文本文件格式之一,通常用于存储和交换表格数据。pandas
阅读全文
posted @ 2023-08-28 10:50 myrj
阅读(218)
评论(0)
推荐(0)
2023年8月27日
stata 导出tab命令结果到EXCEL
摘要: stata 导出tab命令结果到EXCEL //导出tab命令结果 tab D_know estpost tab D_know eststo tab9 estout tab9 using "0827-9.xls",replace cells((b pct))
阅读全文
posted @ 2023-08-27 21:08 myrj
阅读(1609)
评论(0)
推荐(0)
2023年8月24日
pd.read_csv pandas.errors.ParserError: Error tokenizing data. C error: Expected 26 fields in line 5799790, saw 34 错误解决
摘要: df1=pd.read_csv(path1,encoding="utf-8",chunksize=50000, error_bad_lines=False) 尽管提示: Warning (from warnings module): File "D:\Python37\lib\idlelib\run
阅读全文
posted @ 2023-08-24 16:06 myrj
阅读(190)
评论(0)
推荐(0)
python pandas多列筛选
摘要: # -*- coding: utf-8 -*- #from dao.updateMongo import * #from dao.insertMongo import * #from dao.selectMongo import * import pandas as pd #df = selectD
阅读全文
posted @ 2023-08-24 10:32 myrj
阅读(164)
评论(0)
推荐(0)
python eval函数应用
摘要: def calculator(): while True: try: expression = input("请输入表达式(输入'exit'退出):") if expression.lower() == 'exit': break result = eval(expression) print("结
阅读全文
posted @ 2023-08-24 10:30 myrj
阅读(55)
评论(0)
推荐(0)
上一页
1
···
19
20
21
22
23
24
25
26
27
···
189
下一页
公告