From c8bb172c6e838cf95384b83c22ff7dfdd6f257be Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 1 Jan 2026 00:33:23 +0000 Subject: [PATCH 1/2] automated compiling of python requirements --- admin/run_environment/constraints.txt | 126 ++++++++++++------------- admin/run_environment/requirements.txt | 126 ++++++++++++------------- 2 files changed, 124 insertions(+), 128 deletions(-) diff --git a/admin/run_environment/constraints.txt b/admin/run_environment/constraints.txt index 98ecd390b7..ac18319c65 100644 --- a/admin/run_environment/constraints.txt +++ b/admin/run_environment/constraints.txt @@ -21,7 +21,7 @@ attrs==25.4.0 # jsonschema # rasterio # referencing -azure-core==1.36.0 +azure-core==1.37.0 # via # azure-storage-blob # azure-storage-file-datalake @@ -41,19 +41,19 @@ beautifulsoup4==4.14.3 # gdown blinker==1.9.0 # via streamlit -boto3==1.42.4 +boto3==1.42.19 # via # -r requirements.in # cloudpathlib # moto -boto3-stubs==1.42.4 +boto3-stubs==1.42.19 # via -r requirements.in -botocore==1.42.4 +botocore==1.42.19 # via # boto3 # moto # s3transfer -botocore-stubs==1.42.4 +botocore-stubs==1.42.19 # via boto3-stubs bqplot==0.12.45 # via leafmap @@ -65,7 +65,7 @@ branca==0.8.2 # streamlit-folium cached-property==2.0.1 # via -r requirements.in -cachetools==6.2.2 +cachetools==6.2.4 # via # google-auth # streamlit @@ -117,7 +117,7 @@ contextily==1.7.0 # via -r requirements.in contourpy==1.3.3 # via matplotlib -coverage==7.12.0 +coverage==7.13.1 # via pytest-cov cryptography==46.0.3 # via @@ -127,38 +127,38 @@ cryptography==46.0.3 # paramiko # pyjwt # types-paramiko -css-inline==0.18.0 +css-inline==0.19.0 # via -r requirements.in cycler==0.12.1 # via matplotlib daff==1.4.2 # via dbt-core -dbt-adapters==1.20.1 +dbt-adapters==1.22.2 # via # dbt-core # dbt-postgres -dbt-common==1.36.0 +dbt-common==1.37.2 # via # dbt-adapters # dbt-core # dbt-postgres -dbt-core==1.10.15 +dbt-core==1.11.2 # via # -r requirements.in # dbt-postgres # sqlfluff-templater-dbt dbt-extractor==0.6.0 # via dbt-core -dbt-postgres==1.9.1 +dbt-postgres==1.10.0 # via -r requirements.in -dbt-protos==1.0.402 +dbt-protos==1.0.410 # via # dbt-adapters # dbt-common # dbt-core dbt-semantic-interfaces==0.9.0 # via dbt-core -debugpy==1.8.17 +debugpy==1.8.19 # via ipykernel decorator==5.2.1 # via ipython @@ -166,11 +166,11 @@ deepdiff==8.6.1 # via dbt-common diagrams==0.25.1 # via -r requirements.in -diff-cover==9.7.2 +diff-cover==10.1.0 # via sqlfluff distlib==0.4.0 # via virtualenv -duckdb==1.4.2 +duckdb==1.4.3 # via # -r requirements.in # leafmap @@ -182,9 +182,9 @@ execnet==2.1.2 # via pytest-xdist executing==2.2.1 # via stack-data -faker==38.2.0 +faker==40.1.0 # via -r requirements.in -filelock==3.20.0 +filelock==3.20.1 # via # gdown # virtualenv @@ -193,7 +193,7 @@ folium==0.20.0 # -r requirements.in # leafmap # streamlit-folium -fonttools==4.61.0 +fonttools==4.61.1 # via matplotlib gdal==3.11.3 # via -r requirements.in @@ -205,7 +205,7 @@ geographiclib==2.1 # via geopy geojson==3.2.0 # via leafmap -geopandas==1.1.1 +geopandas==1.1.2 # via # -r requirements.in # leafmap @@ -219,16 +219,16 @@ google-api-core==2.28.1 # via # google-cloud-core # google-cloud-storage -google-auth==2.43.0 +google-auth==2.45.0 # via # google-api-core # google-cloud-core # google-cloud-storage google-cloud-core==2.5.0 # via google-cloud-storage -google-cloud-storage==3.6.0 +google-cloud-storage==3.7.0 # via cloudpathlib -google-crc32c==1.7.1 +google-crc32c==1.8.0 # via # google-cloud-storage # google-resumable-media @@ -248,7 +248,7 @@ idna==3.11 # via requests ijson==3.4.0.post0 # via -r requirements.in -importlib-metadata==8.7.0 +importlib-metadata==8.7.1 # via dbt-semantic-interfaces iniconfig==2.3.0 # via pytest @@ -287,7 +287,7 @@ ipywidgets==8.1.8 # ipyvue # leafmap # whiteboxgui -isodate==0.6.1 +isodate==0.7.2 # via # agate # azure-storage-blob @@ -320,7 +320,7 @@ jmespath==1.0.1 # via # boto3 # botocore -joblib==1.5.2 +joblib==1.5.3 # via # contextily # scikit-learn @@ -333,7 +333,7 @@ jsonschema==4.25.1 # pystac jsonschema-specifications==2025.9.1 # via jsonschema -jupyter-client==8.6.3 +jupyter-client==8.7.0 # via ipykernel jupyter-core==5.9.1 # via @@ -347,15 +347,15 @@ kiwisolver==1.4.9 # via matplotlib leafmap==0.57.10 # via -r requirements.in -leather==0.4.0 +leather==0.4.1 # via agate -librt==0.7.3 +librt==0.7.5 # via mypy lxml==6.0.2 # via -r requirements.in mapclassify==2.10.0 # via -r requirements.in -maplibre==0.3.5 +maplibre==0.3.6 # via leafmap markdown-it-py==4.0.0 # via rich @@ -368,7 +368,7 @@ mashumaro==3.14 # dbt-adapters # dbt-common # dbt-core -matplotlib==3.10.7 +matplotlib==3.10.8 # via # -r requirements.in # contextily @@ -383,34 +383,34 @@ mercantile==1.2.1 # via contextily more-itertools==10.8.0 # via dbt-semantic-interfaces -moto==5.1.18 +moto==5.1.19 # via -r requirements.in msal==1.34.0 # via -r requirements.in msgpack==1.1.2 # via mashumaro -mypy==1.19.0 +mypy==1.19.1 # via # -r requirements.in # openpyxl-stubs # sqlalchemy-stubs -mypy-boto3-s3==1.42.3 +mypy-boto3-s3==1.42.16 # via boto3-stubs mypy-extensions==1.1.0 # via # mypy # typing-inspect -narwhals==2.13.0 +narwhals==2.14.0 # via # altair # plotly nest-asyncio==1.6.0 # via ipykernel -networkx==3.6 +networkx==3.6.1 # via # dbt-core # mapclassify -nodeenv==1.9.1 +nodeenv==1.10.0 # via pre-commit numerize==0.12 # via -r requirements.in @@ -462,9 +462,9 @@ pandas==2.3.3 # mapclassify # streamlit # streamlit-aggrid -pandas-stubs==2.3.3.251201 +pandas-stubs==2.3.3.251219 # via -r requirements.in -pandera==0.27.0 +pandera==0.27.1 # via -r requirements.in paramiko==4.0.0 # via -r requirements.in @@ -499,7 +499,7 @@ pluggy==1.6.0 # diff-cover # pytest # pytest-cov -pre-commit==4.5.0 +pre-commit==4.5.1 # via # -r requirements.in # diagrams @@ -507,7 +507,7 @@ probableparsing==0.0.1 # via usaddress prompt-toolkit==3.0.52 # via ipython -proto-plus==1.26.1 +proto-plus==1.27.0 # via google-api-core protobuf==6.33.2 # via @@ -519,7 +519,7 @@ protobuf==6.33.2 # googleapis-common-protos # proto-plus # streamlit -psutil==7.1.3 +psutil==7.2.1 # via ipykernel psycopg2-binary==2.9.11 # via @@ -538,7 +538,7 @@ pyarrow==22.0.0 # -r requirements.in # pyarrow-stubs # streamlit -pyarrow-stubs==20.0.0.20251107 +pyarrow-stubs==20.0.0.20251215 # via -r requirements.in pyasn1==0.6.1 # via @@ -577,7 +577,7 @@ pynacl==1.6.1 # via paramiko pyogrio==0.12.1 # via geopandas -pyparsing==3.2.5 +pyparsing==3.3.1 # via # matplotlib # rasterio @@ -585,7 +585,7 @@ pyproj==3.7.2 # via geopandas pysocks==1.7.1 # via requests -pystac==1.14.1 +pystac==1.14.2 # via pystac-client pystac-client==0.9.0 # via leafmap @@ -601,7 +601,7 @@ pytest-xdist==3.8.0 # via -r requirements.in python-box==7.3.2 # via leafmap -python-crfsuite==0.9.11 +python-crfsuite==0.9.12 # via usaddress python-dateutil==2.9.0.post0 # via @@ -643,7 +643,7 @@ pyzmq==27.1.0 # via # ipykernel # jupyter-client -rasterio==1.4.3 +rasterio==1.4.4 # via contextily referencing==0.37.0 # via @@ -680,11 +680,11 @@ rpds-py==0.30.0 # referencing rsa==4.9.1 # via google-auth -ruff==0.14.8 +ruff==0.14.10 # via -r requirements.in s3transfer==0.16.0 # via boto3 -scikit-learn==1.7.2 +scikit-learn==1.8.0 # via mapclassify scipy==1.16.3 # via @@ -699,18 +699,16 @@ shapely==2.1.2 shellingham==1.5.4 # via typer six==1.17.0 - # via - # isodate - # python-dateutil + # via python-dateutil smmap==5.0.2 # via gitdb snowplow-tracker==1.1.0 # via dbt-core socrata-py==1.1.13 # via -r requirements.in -soupsieve==2.8 +soupsieve==2.8.1 # via beautifulsoup4 -sqlalchemy==2.0.44 +sqlalchemy==2.0.45 # via # -r requirements.in # geoalchemy2 @@ -726,12 +724,12 @@ sqlparse==0.5.4 # via dbt-core stack-data==0.6.3 # via ipython -streamlit==1.52.1 +streamlit==1.52.2 # via # -r requirements.in # streamlit-aggrid # streamlit-folium -streamlit-aggrid==1.2.1 +streamlit-aggrid==1.2.1.post2 # via -r requirements.in streamlit-folium==0.25.3 # via -r requirements.in @@ -747,7 +745,7 @@ threadpoolctl==3.6.0 # via scikit-learn toml==0.10.2 # via streamlit -tornado==6.5.2 +tornado==6.5.4 # via # ipykernel # jupyter-client @@ -773,9 +771,9 @@ traittypes==0.2.3 # ipyleaflet typeguard==4.4.4 # via pandera -typer==0.20.0 +typer==0.21.0 # via -r requirements.in -types-awscrt==0.29.2 +types-awscrt==0.30.0 # via botocore-stubs types-beautifulsoup4==4.12.0.20250516 # via -r requirements.in @@ -795,9 +793,9 @@ types-requests==2.32.4.20250913 # via # -r requirements.in # types-tqdm -types-s3transfer==0.15.0 +types-s3transfer==0.16.0 # via boto3-stubs -types-setuptools==80.9.0.20250822 +types-setuptools==80.9.0.20251223 # via -r requirements.in types-tqdm==4.67.0.20250809 # via -r requirements.in @@ -833,11 +831,11 @@ typing-inspect==0.9.0 # via pandera typing-inspection==0.4.2 # via pydantic -tzdata==2025.2 +tzdata==2025.3 # via # faker # pandas -urllib3==2.6.0 +urllib3==2.6.2 # via # -r requirements.in # botocore @@ -848,7 +846,7 @@ us==3.2.0 # via -r requirements.in usaddress==0.5.16 # via -r requirements.in -uv==0.9.16 +uv==0.9.21 # via -r requirements.in virtualenv==20.35.4 # via pre-commit diff --git a/admin/run_environment/requirements.txt b/admin/run_environment/requirements.txt index 431d6c798d..8e2268fcd6 100644 --- a/admin/run_environment/requirements.txt +++ b/admin/run_environment/requirements.txt @@ -21,7 +21,7 @@ attrs==25.4.0 # jsonschema # rasterio # referencing -azure-core==1.36.0 +azure-core==1.37.0 # via # azure-storage-blob # azure-storage-file-datalake @@ -41,19 +41,19 @@ beautifulsoup4==4.14.3 # gdown blinker==1.9.0 # via streamlit -boto3==1.42.4 +boto3==1.42.19 # via # -r requirements.in # cloudpathlib # moto -boto3-stubs[s3]==1.42.4 +boto3-stubs[s3]==1.42.19 # via -r requirements.in -botocore==1.42.4 +botocore==1.42.19 # via # boto3 # moto # s3transfer -botocore-stubs==1.42.4 +botocore-stubs==1.42.19 # via boto3-stubs bqplot==0.12.45 # via leafmap @@ -65,7 +65,7 @@ branca==0.8.2 # streamlit-folium cached-property==2.0.1 # via -r requirements.in -cachetools==6.2.2 +cachetools==6.2.4 # via # google-auth # streamlit @@ -117,7 +117,7 @@ contextily==1.7.0 # via -r requirements.in contourpy==1.3.3 # via matplotlib -coverage[toml]==7.12.0 +coverage[toml]==7.13.1 # via pytest-cov cryptography==46.0.3 # via @@ -127,38 +127,38 @@ cryptography==46.0.3 # paramiko # pyjwt # types-paramiko -css-inline==0.18.0 +css-inline==0.19.0 # via -r requirements.in cycler==0.12.1 # via matplotlib daff==1.4.2 # via dbt-core -dbt-adapters==1.20.1 +dbt-adapters==1.22.2 # via # dbt-core # dbt-postgres -dbt-common==1.36.0 +dbt-common==1.37.2 # via # dbt-adapters # dbt-core # dbt-postgres -dbt-core==1.10.15 +dbt-core==1.11.2 # via # -r requirements.in # dbt-postgres # sqlfluff-templater-dbt dbt-extractor==0.6.0 # via dbt-core -dbt-postgres==1.9.1 +dbt-postgres==1.10.0 # via -r requirements.in -dbt-protos==1.0.402 +dbt-protos==1.0.410 # via # dbt-adapters # dbt-common # dbt-core dbt-semantic-interfaces==0.9.0 # via dbt-core -debugpy==1.8.17 +debugpy==1.8.19 # via ipykernel decorator==5.2.1 # via ipython @@ -166,11 +166,11 @@ deepdiff==8.6.1 # via dbt-common diagrams==0.25.1 # via -r requirements.in -diff-cover==9.7.2 +diff-cover==10.1.0 # via sqlfluff distlib==0.4.0 # via virtualenv -duckdb==1.4.2 +duckdb==1.4.3 # via # -r requirements.in # leafmap @@ -182,9 +182,9 @@ execnet==2.1.2 # via pytest-xdist executing==2.2.1 # via stack-data -faker==38.2.0 +faker==40.1.0 # via -r requirements.in -filelock==3.20.0 +filelock==3.20.1 # via # gdown # virtualenv @@ -193,7 +193,7 @@ folium==0.20.0 # -r requirements.in # leafmap # streamlit-folium -fonttools==4.61.0 +fonttools==4.61.1 # via matplotlib gdal==3.11.3 # via -r requirements.in @@ -205,7 +205,7 @@ geographiclib==2.1 # via geopy geojson==3.2.0 # via leafmap -geopandas==1.1.1 +geopandas==1.1.2 # via # -r requirements.in # leafmap @@ -219,16 +219,16 @@ google-api-core==2.28.1 # via # google-cloud-core # google-cloud-storage -google-auth==2.43.0 +google-auth==2.45.0 # via # google-api-core # google-cloud-core # google-cloud-storage google-cloud-core==2.5.0 # via google-cloud-storage -google-cloud-storage==3.6.0 +google-cloud-storage==3.7.0 # via cloudpathlib -google-crc32c==1.7.1 +google-crc32c==1.8.0 # via # google-cloud-storage # google-resumable-media @@ -248,7 +248,7 @@ idna==3.11 # via requests ijson==3.4.0.post0 # via -r requirements.in -importlib-metadata==8.7.0 +importlib-metadata==8.7.1 # via dbt-semantic-interfaces iniconfig==2.3.0 # via pytest @@ -287,7 +287,7 @@ ipywidgets==8.1.8 # ipyvue # leafmap # whiteboxgui -isodate==0.6.1 +isodate==0.7.2 # via # agate # azure-storage-blob @@ -320,7 +320,7 @@ jmespath==1.0.1 # via # boto3 # botocore -joblib==1.5.2 +joblib==1.5.3 # via # contextily # scikit-learn @@ -333,7 +333,7 @@ jsonschema==4.25.1 # pystac jsonschema-specifications==2025.9.1 # via jsonschema -jupyter-client==8.6.3 +jupyter-client==8.7.0 # via ipykernel jupyter-core==5.9.1 # via @@ -347,15 +347,15 @@ kiwisolver==1.4.9 # via matplotlib leafmap==0.57.10 # via -r requirements.in -leather==0.4.0 +leather==0.4.1 # via agate -librt==0.7.3 +librt==0.7.5 # via mypy lxml==6.0.2 # via -r requirements.in mapclassify==2.10.0 # via -r requirements.in -maplibre==0.3.5 +maplibre==0.3.6 # via leafmap markdown-it-py==4.0.0 # via rich @@ -368,7 +368,7 @@ mashumaro[msgpack]==3.14 # dbt-adapters # dbt-common # dbt-core -matplotlib==3.10.7 +matplotlib==3.10.8 # via # -r requirements.in # contextily @@ -383,34 +383,34 @@ mercantile==1.2.1 # via contextily more-itertools==10.8.0 # via dbt-semantic-interfaces -moto[s3]==5.1.18 +moto[s3]==5.1.19 # via -r requirements.in msal==1.34.0 # via -r requirements.in msgpack==1.1.2 # via mashumaro -mypy==1.19.0 +mypy==1.19.1 # via # -r requirements.in # openpyxl-stubs # sqlalchemy-stubs -mypy-boto3-s3==1.42.3 +mypy-boto3-s3==1.42.16 # via boto3-stubs mypy-extensions==1.1.0 # via # mypy # typing-inspect -narwhals==2.13.0 +narwhals==2.14.0 # via # altair # plotly nest-asyncio==1.6.0 # via ipykernel -networkx==3.6 +networkx==3.6.1 # via # dbt-core # mapclassify -nodeenv==1.9.1 +nodeenv==1.10.0 # via pre-commit numerize==0.12 # via -r requirements.in @@ -462,9 +462,9 @@ pandas==2.3.3 # mapclassify # streamlit # streamlit-aggrid -pandas-stubs==2.3.3.251201 +pandas-stubs==2.3.3.251219 # via -r requirements.in -pandera==0.27.0 +pandera==0.27.1 # via -r requirements.in paramiko==4.0.0 # via -r requirements.in @@ -499,7 +499,7 @@ pluggy==1.6.0 # diff-cover # pytest # pytest-cov -pre-commit==4.5.0 +pre-commit==4.5.1 # via # -r requirements.in # diagrams @@ -507,7 +507,7 @@ probableparsing==0.0.1 # via usaddress prompt-toolkit==3.0.52 # via ipython -proto-plus==1.26.1 +proto-plus==1.27.0 # via google-api-core protobuf==6.33.2 # via @@ -519,7 +519,7 @@ protobuf==6.33.2 # googleapis-common-protos # proto-plus # streamlit -psutil==7.1.3 +psutil==7.2.1 # via ipykernel psycopg2-binary==2.9.11 # via @@ -538,7 +538,7 @@ pyarrow==22.0.0 # -r requirements.in # pyarrow-stubs # streamlit -pyarrow-stubs==20.0.0.20251107 +pyarrow-stubs==20.0.0.20251215 # via -r requirements.in pyasn1==0.6.1 # via @@ -577,7 +577,7 @@ pynacl==1.6.1 # via paramiko pyogrio==0.12.1 # via geopandas -pyparsing==3.2.5 +pyparsing==3.3.1 # via # matplotlib # rasterio @@ -585,7 +585,7 @@ pyproj==3.7.2 # via geopandas pysocks==1.7.1 # via requests -pystac[validation]==1.14.1 +pystac[validation]==1.14.2 # via pystac-client pystac-client==0.9.0 # via leafmap @@ -601,7 +601,7 @@ pytest-xdist==3.8.0 # via -r requirements.in python-box==7.3.2 # via leafmap -python-crfsuite==0.9.11 +python-crfsuite==0.9.12 # via usaddress python-dateutil==2.9.0.post0 # via @@ -643,7 +643,7 @@ pyzmq==27.1.0 # via # ipykernel # jupyter-client -rasterio==1.4.3 +rasterio==1.4.4 # via contextily referencing==0.37.0 # via @@ -680,11 +680,11 @@ rpds-py==0.30.0 # referencing rsa==4.9.1 # via google-auth -ruff==0.14.8 +ruff==0.14.10 # via -r requirements.in s3transfer==0.16.0 # via boto3 -scikit-learn==1.7.2 +scikit-learn==1.8.0 # via mapclassify scipy==1.16.3 # via @@ -699,18 +699,16 @@ shapely==2.1.2 shellingham==1.5.4 # via typer six==1.17.0 - # via - # isodate - # python-dateutil + # via python-dateutil smmap==5.0.2 # via gitdb snowplow-tracker==1.1.0 # via dbt-core socrata-py==1.1.13 # via -r requirements.in -soupsieve==2.8 +soupsieve==2.8.1 # via beautifulsoup4 -sqlalchemy==2.0.44 +sqlalchemy==2.0.45 # via # -r requirements.in # geoalchemy2 @@ -726,12 +724,12 @@ sqlparse==0.5.4 # via dbt-core stack-data==0.6.3 # via ipython -streamlit==1.52.1 +streamlit==1.52.2 # via # -r requirements.in # streamlit-aggrid # streamlit-folium -streamlit-aggrid==1.2.1 +streamlit-aggrid==1.2.1.post2 # via -r requirements.in streamlit-folium==0.25.3 # via -r requirements.in @@ -747,7 +745,7 @@ threadpoolctl==3.6.0 # via scikit-learn toml==0.10.2 # via streamlit -tornado==6.5.2 +tornado==6.5.4 # via # ipykernel # jupyter-client @@ -773,9 +771,9 @@ traittypes==0.2.3 # ipyleaflet typeguard==4.4.4 # via pandera -typer==0.20.0 +typer==0.21.0 # via -r requirements.in -types-awscrt==0.29.2 +types-awscrt==0.30.0 # via botocore-stubs types-beautifulsoup4==4.12.0.20250516 # via -r requirements.in @@ -795,9 +793,9 @@ types-requests==2.32.4.20250913 # via # -r requirements.in # types-tqdm -types-s3transfer==0.15.0 +types-s3transfer==0.16.0 # via boto3-stubs -types-setuptools==80.9.0.20250822 +types-setuptools==80.9.0.20251223 # via -r requirements.in types-tqdm==4.67.0.20250809 # via -r requirements.in @@ -833,11 +831,11 @@ typing-inspect==0.9.0 # via pandera typing-inspection==0.4.2 # via pydantic -tzdata==2025.2 +tzdata==2025.3 # via # faker # pandas -urllib3==2.6.0 +urllib3==2.6.2 # via # -r requirements.in # botocore @@ -848,7 +846,7 @@ us==3.2.0 # via -r requirements.in usaddress==0.5.16 # via -r requirements.in -uv==0.9.16 +uv==0.9.21 # via -r requirements.in virtualenv==20.35.4 # via pre-commit From 1909d27b23fcb859c878c17389bfc07810ac99f2 Mon Sep 17 00:00:00 2001 From: Finn van Krieken Date: Fri, 2 Jan 2026 10:26:45 -0800 Subject: [PATCH 2/2] mypy no longer supports df cols as attrs --- products/facilities/facdb/pipelines.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/products/facilities/facdb/pipelines.py b/products/facilities/facdb/pipelines.py index b9b25cc953..0a6e67c303 100644 --- a/products/facilities/facdb/pipelines.py +++ b/products/facilities/facdb/pipelines.py @@ -49,9 +49,9 @@ def dca_operatingbusinesses(df: pd.DataFrame): ] today = datetime.datetime.today() covid_freeze = datetime.datetime.strptime("03/12/2020", "%m/%d/%Y") - df.expiration_date = pd.to_datetime(df["expiration_date"], format="%m/%d/%Y") + df["expiration_date"] = pd.to_datetime(df["expiration_date"], format="%m/%d/%Y") # fmt:off - df = df.loc[((df.expiration_date >= today) & (df.business_category == "Scrap Metal Processor"))|((df.expiration_date >= covid_freeze) & (df.business_category != "Scrap Metal Processor")), :]\ + df = df.loc[((df["expiration_date"] >= today) & (df.business_category == "Scrap Metal Processor"))|((df["expiration_date"] >= covid_freeze) & (df.business_category != "Scrap Metal Processor")), :]\ .loc[df.business_category.isin(industry), :] # fmt:on df = sanitize_df(df) @@ -435,10 +435,10 @@ def foodbankny_foodbanks(df: pd.DataFrame): def hhc_hospitals(df: pd.DataFrame): - df["spatial"] = df.location_1.apply(lambda x: x.split("(")[-1].replace(")", "")) + df["spatial"] = df["location_1"].apply(lambda x: x.split("(")[-1].replace(")", "")) df["longitude"] = df.spatial.apply(lambda x: x.split(",")[-1]) df["latitude"] = df.spatial.apply(lambda x: x.split(",")[0]) - df.location_1 = df.location_1.apply(lambda x: x.replace("\n", " ")) + df["location_1"] = df["location_1"].apply(lambda x: x.replace("\n", " ")) df = sanitize_df(df) df = FunctionBN(bin_field="bin").geocode_a_dataframe(df) df = FunctionBL(bbl_field="bbl").geocode_a_dataframe(df)