Skip to content

Commit ad22aea

Browse files
committed
Insignificant fix in _data_types.py
1 parent 924b0bb commit ad22aea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

awswrangler/_data_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ def sqlalchemy_types_from_pandas(
372372
df: pd.DataFrame, db_type: str, dtype: Optional[Dict[str, VisitableType]] = None
373373
) -> Dict[str, VisitableType]:
374374
"""Extract the related SQLAlchemy data types from any Pandas DataFrame."""
375-
casts: Dict[str, VisitableType] = dtype if dtype else {}
375+
casts: Dict[str, VisitableType] = dtype if dtype is not None else {}
376376
pa_columns_types: Dict[str, Optional[pa.DataType]] = pyarrow_types_from_pandas(
377377
df=df, index=False, ignore_cols=list(casts.keys())
378378
)

0 commit comments

Comments
 (0)