Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Aug 7, 2018
1 parent 8a6f75e commit 6ba8ca9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions pandas/core/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -1103,6 +1103,8 @@ def set_index(self, arrays, append=False, inplace=False,
Parameters
----------
arrays : array or list of arrays
Either a Series, Index, MultiIndex, np.ndarray or a list containing
only Series, Index, MultiIndex, list, np.ndarray
append : boolean, default False
Whether to append columns to existing index
inplace : boolean, default False
Expand All @@ -1118,7 +1120,7 @@ def set_index(self, arrays, append=False, inplace=False,
Examples
--------
>>> ...
TODO
"""

if (not isinstance(arrays,
Expand All @@ -1128,7 +1130,7 @@ def set_index(self, arrays, append=False, inplace=False,
list, np.ndarray))
for x in arrays))):
raise ValueError('arrays must be Series, Index, MultiIndex, '
'np.ndarray or list containing containing only'
'np.ndarray or list containing only'
'Series, Index, MultiIndex, list, np.ndarray')

if not isinstance(arrays, list):
Expand Down
2 changes: 1 addition & 1 deletion pandas/tests/frame/test_alter_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
is_categorical_dtype,
is_interval_dtype)

import pandas.tm as tm
import pandas.util.testing as tm

from pandas.tests.frame.common import TestData

Expand Down

0 comments on commit 6ba8ca9

Please sign in to comment.