Skip to content

Commit 1f01e49

Browse files
unknownwesm
authored andcommitted
fixed pandas-dev#251 used empty = self[col].count() == 0
1 parent 9163234 commit 1f01e49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/frame.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2871,7 +2871,7 @@ def plot(self, subplots=False, sharex=True, sharey=False, use_index=True,
28712871
x = range(len(self))
28722872

28732873
for i, col in enumerate(_try_sort(self.columns)):
2874-
empty = np.all(np.isnan(self[col].values))
2874+
empty = self[col].count() == 0
28752875
y = self[col].values if not empty else np.zeros(x.shape)
28762876
if subplots:
28772877
ax = axes[i]

0 commit comments

Comments
 (0)