根据时间融合气体分析仪和气象站的数据
1. dataframe数据结构和numpy数据结构,通过for循环遍历气象站数据到3400行(共16000行左右)时,变得特别慢,最后通过numpy向量化解决速度问题,详细尝试过程见函数GasAnalyzer.merge_data; 2. 拼接dataframe时需要加上关键字参数ignore_index=True,否则会记录拼接前的行信息,对后面的遍历造成不利影像,例如访问第一行,会返回多个值;
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,6 +3,7 @@
|
||||
*.rar
|
||||
*.docx
|
||||
/2022neimengdata
|
||||
/sampledata_2022neimengdata - 副本
|
||||
|
||||
|
||||
# Byte-compiled / optimized / DLL files
|
||||
|
Reference in New Issue
Block a user