Skip to content
Snippets Groups Projects
Commit 5a3a545a authored by Martin Schrön's avatar Martin Schrön
Browse files

Hotfix DWD data retrieval for modern pandas

parent 2a9f2179
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,8 @@ import io
import sys
from pdb import set_trace as debug
from corny.basics import col_is_unique, progressbar, cprintf
import warnings
warnings.simplefilter(action='ignore', category=pd.errors.PerformanceWarning)
#######
def findkeys(node, kv):
......@@ -239,7 +240,9 @@ def update_stationlist(time_res='hourly',dbase_dir='dbase',data_category='air_tr
#add true information to category
dfstations[category]=True
stations_network=stations_network.append(dfstations,sort=False,ignore_index=True)
stations_network = pd.concat(
[ stations_network, dfstations ],
sort=False, ignore_index=True)
#A=[sub.split(" ") for sub in stationlist]
#replace all Na by False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment