From 859a5e6d62110d0788ec3999386f784586dcc28d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 28 Nov 2024 20:00:02 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- docs/PDFM/map_pdfm_features.ipynb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/PDFM/map_pdfm_features.ipynb b/docs/PDFM/map_pdfm_features.ipynb index e4f68bd..eef0229 100644 --- a/docs/PDFM/map_pdfm_features.ipynb +++ b/docs/PDFM/map_pdfm_features.ipynb @@ -134,7 +134,7 @@ "outputs": [], "source": [ "county_gdf = gpd.read_file(county_geojson)\n", - "county_gdf.set_index('place', inplace=True)\n", + "county_gdf.set_index(\"place\", inplace=True)\n", "county_gdf.head()" ] }, @@ -152,7 +152,7 @@ "outputs": [], "source": [ "df = zhvi_df.join(county_gdf)\n", - "zhvi_gdf = gpd.GeoDataFrame(df, geometry='geometry')\n", + "zhvi_gdf = gpd.GeoDataFrame(df, geometry=\"geometry\")\n", "zhvi_gdf.head()" ] }, @@ -269,7 +269,7 @@ "outputs": [], "source": [ "df = embeddings_df.join(county_gdf)\n", - "embeddings_gdf = gpd.GeoDataFrame(df, geometry='geometry')\n", + "embeddings_gdf = gpd.GeoDataFrame(df, geometry=\"geometry\")\n", "embeddings_gdf.head()" ] }, @@ -479,8 +479,8 @@ "outputs": [], "source": [ "df = evaluation_df.join(gdf)\n", - "df['difference'] = df['y_pred'] - df['y']\n", - "evaluation_gdf = gpd.GeoDataFrame(df, geometry='geometry')\n", + "df[\"difference\"] = df[\"y_pred\"] - df[\"y\"]\n", + "evaluation_gdf = gpd.GeoDataFrame(df, geometry=\"geometry\")\n", "evaluation_gdf.drop(columns=[\"category\", \"color\", column], inplace=True)\n", "evaluation_gdf.head()" ]