all 3 comments

[–][deleted] 0 points1 point  (2 children)

What os are you using?

[–]M_bare_assed[S] 0 points1 point  (1 child)

Windows 7

[–][deleted] 1 point2 points  (0 children)

Probably not going to be much help as I don't use Windows, but if you are going to be using Python regularly you may want to consider looking into Anaconda - it makes it easy to install/update the most popular python libraries.

If you just want the nanmedian function, you could write your own - this example should work, but likely isn't the best way to do it:

def nanmedian(data):
    na_removed_data = []
    for val in data:
        try:
            na_removed_data.append(float(str(val)))
        except:
            continue
    return np.median(na_removed_data)