Fix NameError for 'sales' in Exercise 1; Fixes #44 #59
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Description
Overview
This pull request addresses and resolves the issue titled "Exercise 1: NameError: name 'sales' is not defined," as reported in Issue #44.
Issue URL: Issue #44
The reported error occurred when attempting to access the variable
sales
in a Jupyter notebook environment while working with the provided CSV data.Changes Made
Importing Required Libraries: We ensured that the necessary libraries, such as
numpy
,pandas
, andmatplotlib
, are imported before using them in the code.Loading Sales Data: Implemented the loading of sales data from the CSV file located at
data/sales_data.csv
into the newly defined variablesales
. This resolves the NameError encountered earlier by ensuring the variable is properly initialized.Testing & Verification
Following these changes, the notebook now functions as intended, with the
sales
variable defined and ready for subsequent analysis. Users can successfully perform calculations and visualizations without encountering the previously mentioned error.Suggested Next Steps
Users are encouraged to proceed with various data analysis tasks using the
sales
variable, such as:Customer_Age
orOrder_Quantity
.Additional Resources
To facilitate smoother future usage and prevent similar issues:
We appreciate your patience during the resolution of this issue!
Fixes #44
Please feel free to reach out if you have any additional questions or need further assistance!