Delaware Data, can't insert data. NOT NULL constraint fails #212
-
I'm working on the Delaware county scraper. I've got all the data ready to go, but I can't The variables I have are:
Am I doing something wrong with the variables? Did I miss something? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
You should try to use the find_unknown_variable_id method on the scraper What happens when you do? from can_tools.scrapers import DelawareCountyVaccine
from can_tools.models import create_dev_engine
engine, Session = create_dev_engine()
d = DelawareCountyVaccine()
df = d.fetch_normalize()
d.find_unknown_variable_id(df, engine) |
Beta Was this translation helpful? Give feedback.
-
In general you need to make sure the category measurement unit (CMU) lines up with an entry in this file: https://github.com/covid-projections/can-scrapers/blob/e3a933ec7fb22ccdbb7c0ddd1a9545c967dfa213/can_tools/bootstrap_data/covid_variables.csv |
Beta Was this translation helpful? Give feedback.
In general you need to make sure the category measurement unit (CMU) lines up with an entry in this file: https://github.com/covid-projections/can-scrapers/blob/e3a933ec7fb22ccdbb7c0ddd1a9545c967dfa213/can_tools/bootstrap_data/covid_variables.csv