Skip to content

Commit 71e60c3

Browse files
committed
Reorder import statement in _make_plot method
Moved the import of `Series` within the `_make_plot` method to comply with styling or runtime considerations. This ensures consistency and avoids potential import-related issues.
1 parent 9cb7b99 commit 71e60c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/plotting/_matplotlib/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,11 +1340,11 @@ def __init__(
13401340

13411341
@register_pandas_matplotlib_converters
13421342
def _make_plot(self, fig: Figure) -> None:
1343-
from pandas import Series
1344-
13451343
x, y, c, data = self.x, self.y, self.c, self.data
13461344
ax = self.axes[0]
13471345

1346+
from pandas import Series
1347+
13481348
x_data = data[x]
13491349
s = Series(index=x_data)
13501350
if use_dynamic_x(ax, s.index):

0 commit comments

Comments
 (0)