Practice exercises demonstrating Python list comprehensions for data transformation, column renaming, and conditional filtering using the Seaborn car_crashes dataset.
- List comprehensions with conditional logic
- String manipulation (uppercase, prefix addition)
- Column name transformation patterns
- Boolean flag creation for filtering
- Uppercase + Prefix — Rename numeric columns to uppercase with "NUM_" prefix
- String Matching — Flag columns that don't contain "no" in their name
- Filtered DataFrame — Create a subset using the flag rules above
pip install seaborn
python List_comprehension.pyMIT