Skip to content

Commit 0e162c6

Browse files
committed
fix
1 parent df5e31a commit 0e162c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/generic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ def set_index(self, keys, drop=True, append=False, inplace=False,
764764
elif isinstance(col, (list, np.ndarray)):
765765
arrays.append(col)
766766
names.append(None)
767-
# from here, col can only be a column label (and self a DataFrame);
767+
# from here, col can only be a column label (and obj a DataFrame);
768768
# see checks in Series.set_index and DataFrame.set_index
769769
else:
770770
arrays.append(obj[col]._values)

0 commit comments

Comments
 (0)