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