Skip to content

Commit e350b82

Browse files
fix
1 parent cb15c0d commit e350b82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/series.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,7 @@ def _get_values(self, indexer):
968968
# mpl compat if we look up e.g. ser[:, np.newaxis];
969969
# see tests.series.timeseries.test_mpl_compat_hack
970970
# the asarray is needed to avoid returning a 2D DatetimeArray
971-
return np.asarray(self._values[indexer])
971+
return np.asarray(self._values)[indexer]
972972

973973
def _get_value(self, label, takeable: bool = False):
974974
"""

0 commit comments

Comments
 (0)