> For the complete documentation index, see [llms.txt](https://prof-rossetti.gitbook.io/intro-to-python/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://prof-rossetti.gitbook.io/intro-to-python/projects/exec-dash/challenges.md).

# "Exec Dash" Further Exploration Challenges

## Validating CSV Headers

If the user selects a data file which contains invalid/unexpected header rows, the program should stop execution and display a friendly error message like "Oh, the selected file contains unexpected headers. Please try again."

## Comparing Sales Across Months

Create a separate script in your project repository called "multi\_month.py". When executed, this program should import data from at least three of the monthly sales CSV files and compare the results. Which months have the highest sales? Lowest? What is the trend of sales over time?

Visualize the sales over time using a column or bar chart with time on the x axis and sales on the y axis.

> HINT: for processing all CSV files, try using the `os` module to detect the names of all CSV files which exist in the "data" directory, and loop through each one at a time, processing its data and either storing the results in memory or to a separate CSV file.

## Normalizing Data Across Months

Different months can contain a different numbers of days. Is it totally accurate to compare sales for a 28-day month against sales for a 31-day month? And what about the proportion of weekend days vs weekdays?

Your program should somehow take these and other irregularities into account when comparing sales across months, smoothing them as much as possible to facilitate accurate comparisons.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://prof-rossetti.gitbook.io/intro-to-python/projects/exec-dash/challenges.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
