会员
周边
新闻
博问
闪存
众包
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
myrj
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
46
47
48
49
50
51
52
53
54
···
188
下一页
2023年3月27日
C语言:错误错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token如何应对
摘要: GCC编译C源程序时出现:错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token,通常是因为在函数声明(包括包含的头文件中的函数声明)后面忘记了分号“;”。仔细检查一遍各个函数声明,把遗漏的分号“;”加上去就可以解决此
阅读全文
posted @ 2023-03-27 10:10 myrj
阅读(4995)
评论(0)
推荐(0)
2023年3月26日
c语言 俄罗斯方块源码
摘要: #include <windows.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <conio.h> #include <stdbool.h> /* ¹ÜµÀ¾ä±úµÄ¶¨Òå */ HANDLE hStd
阅读全文
posted @ 2023-03-26 17:42 myrj
阅读(99)
评论(0)
推荐(0)
python pandas读取列名(变量名)
摘要: df.columns.tolist() ['pid', 'fid18', 'age', 'pidhaizi', 'pidhaizia', 'pidhaizib', 'pidhaizic', 'pidhaizid', 'pidhaizie', 'pidhaizif', 'pidhaizig', 'mi
阅读全文
posted @ 2023-03-26 15:21 myrj
阅读(134)
评论(0)
推荐(0)
python 判断如果是缺失值则改为99999
摘要: import numpy as np iux=np.nan_to_num(row[ii],nan=99999)#判断如果是缺失值,则改为99999
阅读全文
posted @ 2023-03-26 08:30 myrj
阅读(114)
评论(0)
推荐(0)
stata 检测缺失值的方法
摘要: //检测缺失值方法: //用.表示缺失值,将缺失值定义为无穷大 //方法一:检测当前行有几个变量是缺失值,Stata执行描述性统计命令时,会自动忽略变量的缺失值;执行回归命令时,如果其中某个变量包含缺失值,Stata忽略这个变量所属观测值上所有变量取值 egen miss=rowmiss(_all)
阅读全文
posted @ 2023-03-26 07:08 myrj
阅读(2726)
评论(0)
推荐(0)
2023年3月25日
STATA: 长命令处理方法
摘要: STATA .do文件中命令特别长: .do文件中如果一条命令字符特别多,可在第一行末尾///(三个斜杠)表示此命令持续到下一行,该命令只有在达到不以///结尾的那一行之后才会执行 长命令另一处理方式:使用#delimit;命令,设定一个英文分号作为一行命令结束的分隔符。接着键入一条直到分号
阅读全文
posted @ 2023-03-25 21:50 myrj
阅读(2339)
评论(0)
推荐(0)
STATA which命令功能
摘要: STATA which命令: which命令: which 命令名称 显示"命令名称"是内在的命令还是由某个ado文件 定义的命令 显示命令regress是由特定位置的regress.ado文件来完成,更新时间:2020 12 9 which regress // D:\Stata17\ado\ba
阅读全文
posted @ 2023-03-25 21:48 myrj
阅读(91)
评论(0)
推荐(0)
STATA 代码段驻留内存,方便调用
摘要: STATA 代码段驻留内存,方便调用 program counta use ceshi1,clear #delimit ; merge 1:1 id using ceshi2,update replace ; #delimit cr list end //运行上述代码后,则以后可输入counta来代
阅读全文
posted @ 2023-03-25 21:47 myrj
阅读(73)
评论(0)
推荐(0)
stata:合并merge时如何处理关键变量外的同名变量的值分三种情况
摘要: use ceshi1,clear list // // + + // | id ks2019 ks2020 ks2021 ks2022 ks2023 ab | // | | // 1. | 1 1 0 1 2 0 1 | // 2. | 2 2 0 2 3 2 . | // 3. | 3 3 0 3
阅读全文
posted @ 2023-03-25 19:25 myrj
阅读(945)
评论(0)
推荐(0)
python 判断是否为timestamp
摘要: if re.match('\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}', str(lba[1])): print(1)
阅读全文
posted @ 2023-03-25 08:32 myrj
阅读(325)
评论(0)
推荐(0)
上一页
1
···
46
47
48
49
50
51
52
53
54
···
188
下一页
公告