MCPcopy
hub / github.com/ResidentMario/missingno / _ascending_sort

Function _ascending_sort

missingno/missingno.py:10–15  ·  view source on GitHub ↗

Helper method for sorting. Returns a DataFrame whose values have been rearranged by ascending completeness.

(df)

Source from the content-addressed store, hash-verified

8
9
10def _ascending_sort(df):
11 """
12 Helper method for sorting.
13 Returns a DataFrame whose values have been rearranged by ascending completeness.
14 """
15 return df.iloc[np.argsort(df.count(axis='columns').values), :]
16
17
18def _descending_sort(df):

Callers 1

nullity_sortFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected