摘要: 时间 import time from datetime import datetime as dt data['timestamp'] = data['OCC_TIM'].apply(lambda x:time.mktime(time.strptime(x,'%Y-%m-%d %H:%M:%S') 阅读全文
posted @ 2020-08-11 17:03 hqium 阅读(106) 评论(0) 推荐(0) 编辑
摘要: #作图matplotlib%matplotlib inlineimport matplotlib.pyplot as pltplt.rcParams['font.sans-serif'] = ['SimHei'] #显示中文plt.rcParams['axes.unicode_minus'] = F 阅读全文
posted @ 2020-08-11 16:23 hqium 阅读(108) 评论(0) 推荐(0) 编辑
摘要: import pandas as pdimport numpy as np 导入数据 pd.read_csv(filename,dtype=str):从CSV文件导入数据 [header=1,delim_whitespace=True,delimiter="\t",parse_dates=['OCC 阅读全文
posted @ 2018-10-25 00:03 hqium 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 【下载】(Protégé5.0.0版) Protégé5.0.0版:http://download.csdn.net/download/loveshouwang/8513995 GraphViz:http://graphviz.org/Download..php 【安装】 1、检查自己的jdk是否7 阅读全文
posted @ 2017-03-09 11:05 hqium 阅读(8511) 评论(0) 推荐(0) 编辑
摘要: 【需求】在用word写小论文的时候想插入漂亮的伪代码,搜索发现有latex这个排版软件可以实现。 【思路】 1、利用Aurora插件在word中插入对象时打开latex编辑。(这个出现“problems running latex”多种方法均未被解决,遂放弃,仍想试试的见http://hqium.b 阅读全文
posted @ 2017-02-24 17:04 hqium 阅读(37807) 评论(3) 推荐(1) 编辑
摘要: 步骤: 【1】生成决策树 【2】用Graphviz软件(安装地址:http://graphviz.org/Download..php) 3.进入工具位置输入 dot -Tpdf treepattern.dot -o treepattern.pdf,就能在输入的目录下找到pdf或者png了。 参考资料 阅读全文
posted @ 2017-01-10 17:03 hqium 阅读(1228) 评论(0) 推荐(0) 编辑
摘要: 日期到时间戳上的转换:import datetimeimport timet = datetime.datetime(2014,12, 6, 12, 10, 10)timestamp = time.mktime(t.timetuple())print timestamp时间戳到时间日期的转换:imp 阅读全文
posted @ 2017-01-03 16:04 hqium 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 【1】利用STRM下载所需的地形DEM。http://srtm.csi.cgiar.org/SELECTION/inputCoord.asp 在下面网格选择所需位置 --> Click here to Begin Search --> Data Download (FTP) SRTM数据主要是由美国 阅读全文
posted @ 2016-12-22 16:05 hqium 阅读(2313) 评论(0) 推荐(0) 编辑
摘要: 清空List —— a=[]、del a[:] 复制List——b=a (改变指向)、import copy ; b=copy.deepcopy(a) (深拷贝) List的长度—— len(a) 函数返回两个或以上参数 创建list——sample_list = [ initial_value f 阅读全文
posted @ 2016-12-08 10:44 hqium 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 【问题】IOError: [Errno 2] No such file or directory: 'E:\\3\xe4\xb8\xaa\xe6\x9c\x88\xe7\x9a\x84\xe5\xae\x9e\xe9\xaa\x8c\\\xe6\x88\x91\\。。。.txt' 【解决】 开头增加 阅读全文
posted @ 2016-10-27 13:22 hqium 阅读(261) 评论(0) 推荐(0) 编辑