上一页 1 2 3 4 5 6 7 8 9 ··· 29 下一页
摘要: import os import pandas as pd import re path = './编码文件' files = os.listdir(path) code = pd.read_excel('./文件名与编码文件/编码和名称.xlsx',sheet_name=0) code 2009年 阅读全文
posted @ 2022-04-05 21:27 kuanleung 阅读(19) 评论(0) 推荐(0)
摘要: import os import pandas as pd import re path = './编码文件' files = os.listdir(path) code = pd.read_excel('./文件名与编码文件/编码和名称.xlsx',sheet_name=0) code for f 阅读全文
posted @ 2022-04-05 14:36 kuanleung 阅读(20) 评论(0) 推荐(0)
摘要: stata移动平均插值法mipolate命令 xtset id year by id: mipolate x3 year , gen(x3_1) idw(4) idw表示取移动平均的项数 结果: 阅读全文
posted @ 2022-04-02 10:03 kuanleung 阅读(860) 评论(0) 推荐(0)
摘要: 最新的命令是xtmoran import excel D:\个人文件\研究生论文\长三角全部\长三角\数据整合\data2019\分省数据\数据回归一张表201920210526-莫兰画图用无市.xlsx,sheet("Sheet1") firstrow clear xtset Variable_c 阅读全文
posted @ 2022-03-29 20:38 kuanleung 阅读(104) 评论(0) 推荐(0)
摘要: 来源https://www.cnblogs.com/tianqizhi/p/10612976.html 1.背景主题、字体大小设置 安装Jupyter主题: pip install jupyterthemes -i https://mirrors.aliyun.com/pypi/simple 然后, 阅读全文
posted @ 2022-03-29 19:41 kuanleung 阅读(51) 评论(0) 推荐(0)
摘要: 已公开 亲自写的库函数,灵活简单 https://gitee.com/kuanleung 阅读全文
posted @ 2022-03-24 17:16 kuanleung 阅读(29) 评论(0) 推荐(0)
摘要: 动图折线展示: import numpy as np import matplotlib.pyplot as plt plt.ion() plt.figure(1) t_list = [] result_list = [] t = 0 while True: if t >= 10 * np.pi: 阅读全文
posted @ 2022-03-20 20:53 kuanleung 阅读(19) 评论(0) 推荐(0)
摘要: import matplotlib.pyplot as plt import numpy as np import pandas as pd plt.rcParams['font.sans-serif']=['SimHei'] #用来正常显示中文标签 plt.rcParams['axes.unico 阅读全文
posted @ 2022-01-28 19:50 kuanleung 阅读(12) 评论(0) 推荐(0)
摘要: #!/usr/bin/env python # coding: utf-8 import pandas as pd from statsmodels.formula.api import ols from statsmodels.stats.anova import anova_lm from st 阅读全文
posted @ 2022-01-03 20:02 kuanleung 阅读(20) 评论(0) 推荐(0)
摘要: gurobi安装学术版 经过分析,参考文献是错误的,所以仅参考代码写法就好 第一步 import gurobipy import pandas as pd from gurobipy import quicksum class FACM(object): def __init__(self,inpu 阅读全文
posted @ 2021-12-30 16:29 kuanleung 阅读(27) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 29 下一页