Skip to content

Commit c216d38

Browse files
committed
Corrige typo loc pandas
1 parent d56f6e9 commit c216d38

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

content/modelisation/0_preprocessing.qmd

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,12 @@ centroids["winner"] = np.where(centroids['votes_gop'] > centroids['votes_dem'],
339339
340340
centroids['lon'] = centroids['geometry'].x
341341
centroids['lat'] = centroids['geometry'].y
342-
centroids = pd.DataFrame(centroids.loc[: , "county_name",'lon','lat','winner', 'CENSUS_2020_POP',"state_name"])
342+
centroids = pd.DataFrame(
343+
centroids.loc[
344+
: ,
345+
["county_name",'lon','lat','winner', 'CENSUS_2020_POP',"state_name"]
346+
]
347+
)
343348
groups = centroids.groupby('winner')
344349
345350
df = centroids.copy()

0 commit comments

Comments
 (0)