Skip to content

Commit

Permalink
updated append to concat method for pandas 2 in FinalTablesStates.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mhweber committed Apr 2, 2024
1 parent 7a6f27d commit 314af34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FinalTablesStates.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import pandas as pd
import os

var = 'NLCD2001'
var = 'RefStreamTempPred'
# Read in a state / hydro-region lookup table
lookupdir = 'L:/Priv/CORFiles/Geospatial_Library_Projects/StreamCat/StateLookup'
stateVPU = pd.read_csv(lookupdir + '/State_VPU.csv')
Expand All @@ -29,7 +29,7 @@
if count > 0:
temp = pd.read_csv('L:/Priv/CORFiles/Geospatial_Library_Projects/StreamCat/FTP_Staging/HydroRegions/' + var + '_Region' + VPU + '.csv')
temp = temp[temp['COMID'].isin(state['COMID'])]
outtable = outtable.append(temp, ignore_index = True)
outtable = pd.concat([outtable, temp], ignore_index = True)
count+=1
# grab state two letter code to use in writing out file
St_Abbr = pd.read_csv(lookupdir + '/states_lookup.csv')
Expand Down

0 comments on commit 314af34

Please sign in to comment.