一、在DataFrame中删除某列中含有空值的行: 删除前: df.dropna(subset=['c']) 删除后: 以后会逐渐累积。 ...
分类:
其他好文 时间:
2020-04-04 14:35:16
阅读次数:
43
合并前数据情况: 当然也可以多于两个sheet,sheet的名字也可以是自定义的。 合并后的效果: 附上代码如下: import pandas as pd #第一步:数据读取 df = pd.read_excel(r'C:\Users\17360\Desktop\test\指标.xlsx',shee ...
分类:
其他好文 时间:
2020-04-03 22:16:19
阅读次数:
77
excel里面的目录是这样的: 生成的目录是这样的 代码如下: import os, sys import pandas as pd path = 'C:/Users/17360/Desktop/cy/' df = pd.read_excel(r'C:\Users\17360\Desktop\tes ...
分类:
其他好文 时间:
2020-04-02 22:38:18
阅读次数:
78
一、实验要求 二、代码实现 1 assume cs:code,ds:data 2 3 data segment 4 db 'welcome to masm!',0 5 data ends 6 7 code segment 8 start: mov dh,8 ;定义行(0-24) 9 mov dl,3 ...
分类:
其他好文 时间:
2020-04-01 14:49:13
阅读次数:
57
/** * * 当前系统时间 是否在时间段内 * @return * @throws Exception */ public static boolean isTimeRange(String sTime, String eTime) { SimpleDateFormat df = new Simp ...
分类:
编程语言 时间:
2020-04-01 12:30:13
阅读次数:
103
#检查磁盘使用率超过90%,并且后台进程没有rman在跑,就运行 /data/script/del_dg_arch.sh 脚本清理归档 a=`df -m /data |tail -n 1|awk '{print int($5)}'` b=`ps -ef|grep rman|grep -v grep| ...
分类:
系统相关 时间:
2020-04-01 10:37:22
阅读次数:
80
一、map() import pandas as pd import numpy as np df = pd.DataFrame({'key1' : ['a', 'a', 'b', 'b', 'a'], 'key2' : ['one', 'two', 'one', 'two', 'one'], 'd ...
分类:
移动开发 时间:
2020-03-30 13:15:36
阅读次数:
97
linux系统下,查看cpu、内存、硬盘大小 查看CPU信息 在根目录下输入以下指令 cat /proc/cpuinfo 查看内存大小 free -m 查看硬盘大小 df -h ...
分类:
系统相关 时间:
2020-03-30 11:13:39
阅读次数:
77
import pandas as pd # 加载数据集 df = pd.read_csv( "http://labfile.oss.aliyuncs.com/courses/1211/car.data", header=None) # 设置列名 df.columns = ['buying', 'ma ...
分类:
其他好文 时间:
2020-03-29 19:50:09
阅读次数:
196
数据的平稳与否对计量经济分析有着重要影响,在计量经济分析之前必须进行平稳性检验。近年来,出现了不少检验数据平稳性的方法,每种检验方法都有其自身的特点。本文从检验模型形式、统计量的构造、使用要求等方面论述和比较几种主要的检验方法,它们分别是 DF 和 ADF 检验法、PP 检验法、霍尔工具变量法、DF ...
分类:
其他好文 时间:
2020-03-29 10:36:25
阅读次数:
68