上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 188 下一页
摘要: //报告输出存在数据缺失的变量及该变量缺失值的个数 cap:ssc install nmissing cap:ssc install fillmissing cap:tssc install nmissing nmissing //with(linear)将缺失值改为相邻值的平均值 fillmiss 阅读全文
posted @ 2023-09-01 09:44 myrj 阅读(2259) 评论(0) 推荐(0)
摘要: 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 阅读(574) 评论(0) 推荐(0)
摘要: 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 阅读(4820) 评论(0) 推荐(0)
摘要: #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 阅读(200) 评论(0) 推荐(0)
摘要: 在Python的数据科学和爬虫开发中,pandas是一个非常常用的库,因为它提供了各种操作数据的函数和方法。其中,pandas可以非常方便地处理CSV和Excel文件。 CSV文件操作 CSV(Comma Separated Values)是文本文件格式之一,通常用于存储和交换表格数据。pandas 阅读全文
posted @ 2023-08-28 10:50 myrj 阅读(196) 评论(0) 推荐(0)
摘要: 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 阅读(1577) 评论(0) 推荐(0)
摘要: 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 阅读(173) 评论(0) 推荐(0)
摘要: # -*- 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 阅读(152) 评论(0) 推荐(0)
摘要: def calculator(): while True: try: expression = input("请输入表达式(输入'exit'退出):") if expression.lower() == 'exit': break result = eval(expression) print("结 阅读全文
posted @ 2023-08-24 10:30 myrj 阅读(42) 评论(0) 推荐(0)
摘要: stata导出到EXCEL: 报错: . export excel using "D:\te\安徽.xlsx", > firstrow(variables)observations must be between 1 and 1048576r(198); 是因为XLSX最大行数限制 将文件分成多个导 阅读全文
posted @ 2023-08-24 09:45 myrj 阅读(1162) 评论(0) 推荐(0)
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 188 下一页