Skip to content

Commit 8d467a1

Browse files
author
luzpaz
committed
flake8 fixes
1 parent a620620 commit 8d467a1

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

asv_bench/benchmarks/pandas_vb_common.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
np.float64, np.int16, np.int8, np.uint16, np.uint8]
1919
datetime_dtypes = [np.datetime64, np.timedelta64]
2020

21-
# This function just needs to be imported into each benchmark file in order to
22-
# sets up the random seed before each function.
21+
# This function just needs to be imported into each benchmark file in order to
22+
# sets up the random seed before each function.
2323
# http://asv.readthedocs.io/en/latest/writing_benchmarks.html
2424
def setup(*args, **kwargs):
2525
np.random.seed(1234)
@@ -36,7 +36,7 @@ def remove(self, f):
3636
try:
3737
os.remove(f)
3838
except:
39-
# On Windows, attempting to remove a file that is in use
39+
# On Windows, attempting to remove a file that is in use
4040
# causes an exception to be raised
4141
pass
4242

pandas/core/tools/datetimes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@ def to_datetime(arg, errors='raise', dayfirst=False, yearfirst=False,
197197
198198
In case when it is not possible to return designated types (e.g. when
199199
any element of input is before Timestamp.min or after Timestamp.max)
200-
return will have datetime.datetime type (or corresponding array/Series).
200+
return will have datetime.datetime type (or corresponding
201+
array/Series).
201202
202203
Examples
203204
--------

pandas/tests/io/parser/parse_dates.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,8 @@ def test_nat_parse(self):
217217
tm.assert_series_equal(expected, result.dtypes)
218218

219219
# test with NaT for the nan_rep
220-
# we don't have a method to specify the Datetime na_rep (it defaults
221-
# to '')
220+
# we don't have a method to specify the Datetime na_rep
221+
# (it defaults to '')
222222
df.to_csv(path)
223223
result = self.read_csv(path, index_col=0, parse_dates=['B'])
224224
tm.assert_frame_equal(result, df)

pandas/tests/io/test_excel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -861,8 +861,8 @@ def test_excel_multindex_roundtrip(self):
861861
if (c_idx_levels == 1 and c_idx_names):
862862
continue
863863

864-
# empty name case current read in as unnamed levels,
865-
# not Nones
864+
# empty name case current read in as unnamed
865+
# levels, not Nones
866866
check_names = True
867867
if not r_idx_names and r_idx_levels > 1:
868868
check_names = False

pandas/tests/test_base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ def setup_method(self, method):
116116

117117
def test_invalida_delgation(self):
118118
# these show that in order for the delegation to work
119-
# the _delegate_* methods need to be overridden to not raise a TypeError
119+
# the _delegate_* methods need to be overridden to not raise
120+
# a TypeError
120121

121122
self.Delegate._add_delegate_accessors(
122123
delegate=self.Delegator,

0 commit comments

Comments
 (0)