Skip to content

Commit aa546e4

Browse files
committed
refactor: simplify logic
1 parent bbe7fde commit aa546e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/plotting/_matplotlib/core.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1808,7 +1808,7 @@ def orientation(self) -> PlottingOrientation:
18081808
@final
18091809
def _set_tick_pos(self, data) -> np.ndarray:
18101810
if self._is_series and is_integer_dtype(data.index):
1811-
return np.array(self._get_xticks(), dtype=int)
1811+
return np.array(data.index)
18121812
else:
18131813
return np.arange(len(data))
18141814

0 commit comments

Comments
 (0)