Example #1
0
def add_totals(ds: pd.Series) -> pd.Series:
    people_vaccinated = ds.total_vaccinations - ds.people_fully_vaccinated
    return enrich_data(ds, "people_vaccinated", people_vaccinated)
Example #2
0
def enrich_source(ds: pd.Series) -> pd.Series:
    return enrich_data(ds, "source_url",
                       "https://coronavirus.bg/bg/statistika")
Example #3
0
def enrich_location(input: pd.Series) -> pd.Series:
    return enrich_data(input, "location", "Morocco")
Example #4
0
def enrich_date(ds: pd.Series) -> pd.Series:
    date = localdate("Europe/Sofia")
    return enrich_data(ds, "date", date)
Example #5
0
def enrich_location(ds: pd.Series) -> pd.Series:
    return enrich_data(ds, "location", "Bulgaria")
Example #6
0
def enrich_location(ds: pd.Series) -> pd.Series:
    return enrich_data(ds, "location", "Pakistan")
Example #7
0
def enrich_location(ds: pd.Series) -> pd.Series:
    return enrich_data(ds, "location", "Sri Lanka")
Example #8
0
def enrich_source(ds: pd.Series) -> pd.Series:
    return enrich_data(ds, "source_url", "https://www.covid19response.lc/")
Example #9
0
def enrich_location(ds: pd.Series) -> pd.Series:
    return enrich_data(ds, "location", "El Salvador")
Example #10
0
def enrich_source(ds: pd.Series) -> pd.Series:
    return enrich_data(ds, "source_url",
                       "https://gogov.ru/articles/covid-v-stats")
Example #11
0
def enrich_location(ds: pd.Series) -> pd.Series:
    return enrich_data(ds, "location", "Saint Lucia")
Example #12
0
def enrich_vaccine(ds: pd.Series) -> pd.Series:
    return enrich_data(ds, "vaccine", "Sputnik V, EpiVacCorona")
Example #13
0
def enrich_source(ds: pd.Series) -> pd.Series:
    return enrich_data(
        ds, "source_url",
        "https://www.kantei.go.jp/jp/headline/kansensho/vaccine.html")
Example #14
0
def enrich_vaccine(ds: pd.Series) -> pd.Series:
    return enrich_data(ds, "vaccine", "Pfizer/BioNTech")
Example #15
0
def enrich_vaccine(ds: pd.Series) -> pd.Series:
    return enrich_data(ds, "vaccine", "Oxford/AstraZeneca")
Example #16
0
def enrich_vaccine(ds: pd.Series) -> pd.Series:
    return enrich_data(ds, "vaccine",
                       "Oxford/AstraZeneca, Pfizer/BioNTech, Sinovac")
Example #17
0
def enrich_source(ds: pd.Series, source: str) -> pd.Series:
    return enrich_data(ds, "source_url", source)
Example #18
0
def format_date(ds: pd.Series) -> pd.Series:
    local_time = datetime.datetime.now(
        pytz.timezone("Asia/Beirut")) - datetime.timedelta(days=1)
    date = str(local_time.date())
    return enrich_data(ds, 'date', date)
Example #19
0
def enrich_vaccine(ds: pd.Series) -> pd.Series:
    return enrich_data(ds, "vaccine", "CanSino, Sinovac, Sinopharm/Beijing, Sputnik V")
Example #20
0
def enrich_location(ds: pd.Series) -> pd.Series:
    return enrich_data(ds, 'location', "Lebanon")
Example #21
0
def enrich_vaccine(ds: pd.Series) -> pd.Series:
    return enrich_data(ds, "vaccine",
                       "Oxford/AstraZeneca, Sinopharm/Beijing, Sputnik V")
Example #22
0
def enrich_vaccine(ds: pd.Series) -> pd.Series:
    return enrich_data(
        ds, 'vaccine',
        "Oxford/AstraZeneca, Pfizer/BioNTech, Sinopharm/Beijing, Sputnik V")
Example #23
0
def add_totals(ds: pd.Series) -> pd.Series:
    people_vaccinated = int(ds["total_vaccinations"]) - int(
        ds["people_fully_vaccinated"])
    return enrich_data(ds, "people_vaccinated", people_vaccinated)
Example #24
0
def enrich_source(ds: pd.Series) -> pd.Series:
    return enrich_data(ds, 'source_url',
                       "https://impact.cib.gov.lb/home/dashboard/vaccine")
Example #25
0
def enrich_vaccine(ds: pd.Series) -> pd.Series:
    return enrich_data(
        ds, "vaccine",
        "Johnson&Johnson, Oxford/AstraZeneca, Moderna, Pfizer/BioNTech")
Example #26
0
def enrich_source(ds: pd.Series) -> pd.Series:
    return enrich_data(ds, "source_url", "https://www.koronavirus.hr")
Example #27
0
def enrich_date(input: pd.Series) -> pd.Series:
    date = str((datetime.datetime.now(pytz.timezone("Africa/Casablanca")) -
                datetime.timedelta(days=1)).date())
    return enrich_data(input, "date", date)
Example #28
0
def enrich_location(ds: pd.Series) -> pd.Series:
    return enrich_data(ds, "location", "Suriname")
Example #29
0
def enrich_vaccine(input: pd.Series) -> pd.Series:
    return enrich_data(input, "vaccine",
                       "Oxford/AstraZeneca, Sinopharm/Beijing")
Example #30
0
def enrich_source(ds: pd.Series) -> pd.Series:
    return enrich_data(ds, "source_url", "https://vaccinare.gov.md/")