mirror of
https://github.com/kristoferssolo/Environment-Protection-Survey-Data-Analysis.git
synced 2025-10-21 18:50:34 +00:00
chore: make into a func
This commit is contained in:
parent
bc0621babc
commit
97a1d5f861
@ -37,11 +37,14 @@ QUESTIONS = {
|
||||
}
|
||||
|
||||
|
||||
def individual_charts(data: pd.DataFrame) -> None:
|
||||
for column, question in QUESTIONS.items():
|
||||
checkbox.draw(data, question=question, filename=EXPORT_DIR / "individual" / f"{column}.png")
|
||||
|
||||
|
||||
def main() -> None:
|
||||
data = read_data(FILE_PATH)
|
||||
|
||||
for column, question in QUESTIONS.items():
|
||||
checkbox.draw(data, question=question, filename=EXPORT_DIR / f"{column}.png")
|
||||
individual_charts(data)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Loading…
Reference in New Issue
Block a user