Skip to content

Commit 6ba8ca9

Browse files
committed
fix typos
1 parent 8a6f75e commit 6ba8ca9

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

pandas/core/series.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -1103,6 +1103,8 @@ def set_index(self, arrays, append=False, inplace=False,
11031103
Parameters
11041104
----------
11051105
arrays : array or list of arrays
1106+
Either a Series, Index, MultiIndex, np.ndarray or a list containing
1107+
only Series, Index, MultiIndex, list, np.ndarray
11061108
append : boolean, default False
11071109
Whether to append columns to existing index
11081110
inplace : boolean, default False
@@ -1118,7 +1120,7 @@ def set_index(self, arrays, append=False, inplace=False,
11181120
11191121
Examples
11201122
--------
1121-
>>> ...
1123+
TODO
11221124
"""
11231125

11241126
if (not isinstance(arrays,
@@ -1128,7 +1130,7 @@ def set_index(self, arrays, append=False, inplace=False,
11281130
list, np.ndarray))
11291131
for x in arrays))):
11301132
raise ValueError('arrays must be Series, Index, MultiIndex, '
1131-
'np.ndarray or list containing containing only'
1133+
'np.ndarray or list containing only'
11321134
'Series, Index, MultiIndex, list, np.ndarray')
11331135

11341136
if not isinstance(arrays, list):

pandas/tests/frame/test_alter_axes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
is_categorical_dtype,
1919
is_interval_dtype)
2020

21-
import pandas.tm as tm
21+
import pandas.util.testing as tm
2222

2323
from pandas.tests.frame.common import TestData
2424

0 commit comments

Comments
 (0)