SortReview


PYT-DS SAISOFT

DATA SCIENCE WITH PYTHON

FROM A FAMOUS TUTORIAL

From Chris Fonnesbeck's Advanced Statistical Computing open Github course material for his Vanderbilt University course Bios8366.

I've seen this stash recommended in articles designed to steer us towards the best materials. I appreciate such guidance and pass on what to me seems on target.


In [ ]:
import pandas as pd

In [ ]:
url = ("https://raw.githubusercontent.com/fonnesbeck/Bios8366/"
       "master/data/microbiome.csv")

In [ ]:
bacteria = pd.read_csv(url)

In [ ]:
bacteria.head()

In [ ]:
bacteria.set_index(['Taxon', 'Patient'], inplace=True)

In [ ]:
bacteria

In [ ]:
bacteria.sort_values(by="Tissue", axis=0)

LAB:

Sort in patient order how?


In [ ]: