File tree Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -1144,14 +1144,20 @@ def converter(*date_cols, col: Hashable):
1144
1144
date_format .get (col ) if isinstance (date_format , dict ) else date_format
1145
1145
)
1146
1146
1147
- result = tools .to_datetime (
1148
- ensure_object (strs ),
1149
- format = date_fmt ,
1150
- utc = False ,
1151
- dayfirst = dayfirst ,
1152
- errors = "ignore" ,
1153
- cache = cache_dates ,
1154
- )
1147
+ with warnings .catch_warnings ():
1148
+ warnings .filterwarnings (
1149
+ "ignore" ,
1150
+ ".*parsing datetimes with mixed time zones will raise a warning" ,
1151
+ category = FutureWarning ,
1152
+ )
1153
+ result = tools .to_datetime (
1154
+ ensure_object (strs ),
1155
+ format = date_fmt ,
1156
+ utc = False ,
1157
+ dayfirst = dayfirst ,
1158
+ errors = "ignore" ,
1159
+ cache = cache_dates ,
1160
+ )
1155
1161
if isinstance (result , DatetimeIndex ):
1156
1162
arr = result .to_numpy ()
1157
1163
arr .flags .writeable = True
You can’t perform that action at this time.
0 commit comments