From 66d05ce19e9ac06a382c7e953ab8e81f92cb27c8 Mon Sep 17 00:00:00 2001 From: Kevin Anderson Date: Thu, 20 Nov 2025 12:09:17 -0500 Subject: [PATCH 1/2] test_sodapro.py: use ME instead of M --- tests/iotools/test_sodapro.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/iotools/test_sodapro.py b/tests/iotools/test_sodapro.py index 7105e9ac98..09f5ee38ea 100644 --- a/tests/iotools/test_sodapro.py +++ b/tests/iotools/test_sodapro.py @@ -21,7 +21,7 @@ index_verbose = pd.date_range('2020-06-01 12', periods=4, freq='1min', tz='UTC') -index_monthly = pd.date_range('2020-01-01', periods=4, freq='1M') +index_monthly = pd.date_range('2020-01-01', periods=4, freq='1ME') dtypes_mcclear_verbose = [ From 42882f480cb3f624e15ac9fba74f6ff9c9dbcd72 Mon Sep 17 00:00:00 2001 From: Kevin Anderson Date: Thu, 20 Nov 2025 12:11:31 -0500 Subject: [PATCH 2/2] acis.py: use mask instead of replace --- pvlib/iotools/acis.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pvlib/iotools/acis.py b/pvlib/iotools/acis.py index 3be16cfa4c..634af07933 100644 --- a/pvlib/iotools/acis.py +++ b/pvlib/iotools/acis.py @@ -413,8 +413,8 @@ def get_acis_station_data(station, start, end, trace_val=0.001, 'climdiv,valid_daterange,tzo,network') } df, metadata = _get_acis(start, end, params, map_variables, url, **kwargs) - df = df.replace("M", np.nan) - df = df.replace("T", trace_val) + df = df.mask(df == 'M', np.nan) + df = df.mask(df == 'T', trace_val) df = df.astype(float) return df, metadata