Skip to content

Commit

Permalink
Fix bad iloc indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelbr committed Jun 26, 2017
1 parent 24c72f1 commit b771642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion missingno/missingno.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ def heatmap(df, inline=True,
ax0 = plt.subplot(gs[0])

# Pre-processing: remove completely filled or completely empty variables.
df = df.iloc[[i for i, n in enumerate(np.var(df.isnull(), axis='rows')) if n > 0]]
df = df.iloc[:,[i for i, n in enumerate(np.var(df.isnull(), axis='rows')) if n > 0]]

# Create and mask the correlation matrix.
corr_mat = df.isnull().corr()
Expand Down

0 comments on commit b771642

Please sign in to comment.