Question: What would an example of this code look like? I plan to use notepad + + and windows powershell to run it . In your

What would an example of this code look like? I plan to use notepad++ and windows powershell to run it.
In your program, load the CSV file and extract rows as a list based on the instructions in Chapter 8(remember line_list).
Create a Python function that takes line_list as input argument and returns a new list of your target column. Use a for-loop and process each line by splitting it by commas, similar to shell assignment 11. Create a new list with the contents of the column and return it at the end of the for loop.
Create another function that takes in the new list you created as an input parameter and filters it by doing ONE of the following:
If your dataset has a string column that you can filter, add a query string parameter to your function and find matching entries and count them.
If your dataset is primarily numeric, add a single value parameter to your function, and find and count items based on a condition (for example return all elements greater than a threshold).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!