Skip to content

Commit db178cf

Browse files
authored
fix: Bump pandas to 2.1.4 for python 3.12 (#34999)
1 parent 5901320 commit db178cf

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ dependencies = [
7676
"packaging",
7777
# --------------------------
7878
# pandas and related (wanting pandas[performance] without numba as it's 100+MB and not needed)
79-
"pandas[excel]>=2.0.3, <2.1",
79+
"pandas[excel]>=2.0.3, <2.2",
8080
"bottleneck", # recommended performance dependency for pandas, see https://pandas.pydata.org/docs/getting_started/install.html#performance-dependencies-recommended
8181
# --------------------------
8282
"parsedatetime",

requirements/base.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ greenlet==3.1.1
160160
# via
161161
# apache-superset (pyproject.toml)
162162
# shillelagh
163+
# sqlalchemy
163164
gunicorn==23.0.0
164165
# via apache-superset (pyproject.toml)
165166
h11==0.16.0
@@ -266,7 +267,7 @@ packaging==25.0
266267
# limits
267268
# marshmallow
268269
# shillelagh
269-
pandas==2.0.3
270+
pandas==2.1.4
270271
# via apache-superset (pyproject.toml)
271272
paramiko==3.5.1
272273
# via

requirements/development.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ greenlet==3.1.1
331331
# apache-superset
332332
# gevent
333333
# shillelagh
334+
# sqlalchemy
334335
grpcio==1.71.0
335336
# via
336337
# apache-superset
@@ -536,7 +537,7 @@ packaging==25.0
536537
# pytest
537538
# shillelagh
538539
# sqlalchemy-bigquery
539-
pandas==2.0.3
540+
pandas==2.1.4
540541
# via
541542
# -c requirements/base-constraint.txt
542543
# apache-superset

superset/commands/database/uploaders/excel_reader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def file_to_dataframe(self, file: FileStorage) -> pd.DataFrame:
7272
"na_values": self._options.get("null_values")
7373
if self._options.get("null_values") # None if an empty list
7474
else None,
75-
"parse_dates": self._options.get("column_dates"),
75+
"parse_dates": self._options.get("column_dates") or False,
7676
"skiprows": self._options.get("skip_rows", 0),
7777
"sheet_name": self._options.get("sheet_name", 0),
7878
"nrows": self._options.get("rows_to_read"),

tests/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ def data_loader(
105105
pandas_loader_configuration: PandasLoaderConfigurations,
106106
table_to_df_convertor: TableToDfConvertor,
107107
) -> DataLoader:
108+
if example_db_engine.dialect.name == PRESTO:
109+
example_db_engine.dialect.get_view_names = Mock(return_value=[])
108110
return PandasDataLoader(
109111
example_db_engine, pandas_loader_configuration, table_to_df_convertor
110112
)

0 commit comments

Comments
 (0)