Skip to content

Commit 4d17722

Browse files
committed
Fix linting errors
1 parent e8f5d4e commit 4d17722

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

pandas/io/sql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ def _harmonize_columns(self, parse_dates=None):
823823
col_type is DatetimeTZDtype):
824824
if col_type is DatetimeTZDtype:
825825
# Convert tz-aware Datetime SQL columns to UTC
826-
self.frame[col_name] = _handle_date_column(df_col,
826+
self.frame[col_name] = _handle_date_column(df_col,
827827
utc=True)
828828
else:
829829
self.frame[col_name] = _handle_date_column(df_col)

pandas/tests/indexes/datetimes/test_tools.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -269,15 +269,15 @@ def test_to_datetime_utc_is_true(self):
269269
result = pd.to_datetime(date_range, utc=True)
270270
expected = pd.DatetimeIndex(data=date_range)
271271
tm.assert_index_equal(result, expected)
272-
272+
273273
@pytest.mark.parametrize("init_constructor, end_constructor, test_method",
274-
[(Index, DatetimeIndex, tm.assert_index_equal),
275-
(list, DatetimeIndex, tm.assert_index_equal),
276-
(np.array, DatetimeIndex, tm.assert_index_equal),
277-
(Series, Series, tm.assert_series_equal)])
278-
def test_to_datetime_utc_true_with_constructors(self,
279-
init_constructor,
280-
end_constructor,
274+
[(Index, DatetimeIndex, tm.assert_index_equal),
275+
(list, DatetimeIndex, tm.assert_index_equal),
276+
(np.array, DatetimeIndex, tm.assert_index_equal),
277+
(Series, Series, tm.assert_series_equal)])
278+
def test_to_datetime_utc_true_with_constructors(self,
279+
init_constructor,
280+
end_constructor,
281281
test_method):
282282
# GH 6415: UTC=True with Series
283283
data = ['20100102 121314', '20100102 121315']

0 commit comments

Comments
 (0)