We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10e9b54 commit 2c1fd7dCopy full SHA for 2c1fd7d
pandas/plotting/_core.py
@@ -368,11 +368,11 @@ def _compute_plot_data(self):
368
369
# GH25587: cast ExtensionArray of pandas (IntegerArray, etc.) to
370
# np.ndarray before plot.
371
+ numeric_data_np = numeric_data.copy()
372
for col in numeric_data:
- if is_extension_array_dtype(numeric_data[col]):
373
- numeric_data[col] = np.asarray(numeric_data[col])
+ numeric_data_np[col] = np.asarray(numeric_data[col])
374
375
- self.data = numeric_data
+ self.data = numeric_data_np
376
377
def _make_plot(self):
378
raise AbstractMethodError(self)
0 commit comments