mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-30 23:50:05 +00:00 
			
		
		
		
	Update generate counties script for geopandas v1.0.1
This commit is contained in:
		
							parent
							
								
									88c3cb49d6
								
							
						
					
					
						commit
						842676933f
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -69,7 +69,7 @@ def ProcessCountiesDbf(dbInfo, dbfFilename): | ||||||
| 
 | 
 | ||||||
|     # Read dataframe |     # Read dataframe | ||||||
|     dbfTable = gpd.read_file(filename        = dbfFilename, |     dbfTable = gpd.read_file(filename        = dbfFilename, | ||||||
|                              include_fields  = ["STATE", "FIPS", "COUNTYNAME"], |                              columns         = ["STATE", "FIPS", "COUNTYNAME"], | ||||||
|                              ignore_geometry = True) |                              ignore_geometry = True) | ||||||
|     dbfTable.drop_duplicates(inplace=True) |     dbfTable.drop_duplicates(inplace=True) | ||||||
| 
 | 
 | ||||||
|  | @ -88,7 +88,7 @@ def ProcessStateDbf(dbInfo, dbfFilename): | ||||||
| 
 | 
 | ||||||
|     # Read dataframe |     # Read dataframe | ||||||
|     dbfTable = gpd.read_file(filename        = dbfFilename, |     dbfTable = gpd.read_file(filename        = dbfFilename, | ||||||
|                              include_fields  = ["STATE", "NAME"], |                              columns         = ["STATE", "NAME"], | ||||||
|                              ignore_geometry = True) |                              ignore_geometry = True) | ||||||
|     dbfTable.drop_duplicates(inplace=True) |     dbfTable.drop_duplicates(inplace=True) | ||||||
| 
 | 
 | ||||||
|  | @ -106,7 +106,7 @@ def ProcessZoneDbf(dbInfo, dbfFilename): | ||||||
| 
 | 
 | ||||||
|     # Read dataframe |     # Read dataframe | ||||||
|     dbfTable = gpd.read_file(filename        = dbfFilename, |     dbfTable = gpd.read_file(filename        = dbfFilename, | ||||||
|                              include_fields  = ["ID", "STATE", "ZONE", "NAME"], |                              columns         = ["ID", "STATE", "ZONE", "NAME"], | ||||||
|                              ignore_geometry = True) |                              ignore_geometry = True) | ||||||
|     dbfTable.drop_duplicates(inplace=True) |     dbfTable.drop_duplicates(inplace=True) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat