first_date¶
- outbreak_tools.first_date(samples, by='collection_site_id')¶
Get the earliest date among samples for each unique value in some column.
- Parameters
samples -- pandas dataframe of samples indexed by date.
by -- name of target column.
- Returns
a pandas series mapping unique values to dates