Skip to content

Misc. Typo fixes #18966

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Dec 30, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
flake8 fixes
  • Loading branch information
luzpaz committed Dec 30, 2017
commit 8d467a1bee7171ccf708936569dd0952da46362d
6 changes: 3 additions & 3 deletions asv_bench/benchmarks/pandas_vb_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
np.float64, np.int16, np.int8, np.uint16, np.uint8]
datetime_dtypes = [np.datetime64, np.timedelta64]

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

Expand Down
3 changes: 2 additions & 1 deletion pandas/core/tools/datetimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ def to_datetime(arg, errors='raise', dayfirst=False, yearfirst=False,

In case when it is not possible to return designated types (e.g. when
any element of input is before Timestamp.min or after Timestamp.max)
return will have datetime.datetime type (or corresponding array/Series).
return will have datetime.datetime type (or corresponding
array/Series).

Examples
--------
Expand Down
4 changes: 2 additions & 2 deletions pandas/tests/io/parser/parse_dates.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ def test_nat_parse(self):
tm.assert_series_equal(expected, result.dtypes)

# test with NaT for the nan_rep
# we don't have a method to specify the Datetime na_rep (it defaults
# to '')
# we don't have a method to specify the Datetime na_rep
# (it defaults to '')
df.to_csv(path)
result = self.read_csv(path, index_col=0, parse_dates=['B'])
tm.assert_frame_equal(result, df)
Expand Down
4 changes: 2 additions & 2 deletions pandas/tests/io/test_excel.py
Original file line number Diff line number Diff line change
Expand Up @@ -861,8 +861,8 @@ def test_excel_multindex_roundtrip(self):
if (c_idx_levels == 1 and c_idx_names):
continue

# empty name case current read in as unnamed levels,
# not Nones
# empty name case current read in as unnamed
# levels, not Nones
check_names = True
if not r_idx_names and r_idx_levels > 1:
check_names = False
Expand Down
3 changes: 2 additions & 1 deletion pandas/tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ def setup_method(self, method):

def test_invalida_delgation(self):
# these show that in order for the delegation to work
# the _delegate_* methods need to be overridden to not raise a TypeError
# the _delegate_* methods need to be overridden to not raise
# a TypeError

self.Delegate._add_delegate_accessors(
delegate=self.Delegator,
Expand Down