Skip to content

Commit

Permalink
Fix reversal.
Browse files Browse the repository at this point in the history
  • Loading branch information
ResidentMario committed Oct 25, 2016
1 parent d87d67c commit e724386
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ You can override this behavior by specifying `labels=True`. In that case you wil

![alt text][bar]

[bar]: http://i.imgur.com/N2LhNIl.png
[bar]: http://i.imgur.com/kITJfB4.png

You can switch to a logarithmic scale by specifying `log=True`:

![alt text][bar2]

[bar2]: http://i.imgur.com/vztgMRj.png
[bar2]: http://i.imgur.com/YZDaAV3.png

`bar` provides the same information as `matrix`, but in a simpler format.

Expand Down
2 changes: 1 addition & 1 deletion missingno/missingno.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def bar(df, figsize=(24, 10), fontsize=16, labels=None, log=False, color=(0.25,
:return: If `inline` is True, the underlying `matplotlib.figure` object. Else, nothing.
"""
# Get counts.
nullity_counts = df.isnull().sum()
nullity_counts = len(df) - df.isnull().sum()

# Apply filters and sorts.
df = nullity_filter(df, filter=filter, n=n, p=p)
Expand Down

0 comments on commit e724386

Please sign in to comment.