Skip to content

Commit 152374a

Browse files
committed
refactor: simplify logic
1 parent aee71bf commit 152374a

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
@@ -1807,7 +1807,7 @@ def orientation(self) -> PlottingOrientation:
18071807
@final
18081808
def _set_tick_pos(self, data) -> np.ndarray:
18091809
if self._is_series and is_integer_dtype(data.index):
1810-
return np.array(self._get_xticks(), dtype=int)
1810+
return np.array(data.index)
18111811
else:
18121812
return np.arange(len(data))
18131813

0 commit comments

Comments
 (0)