Hello, welcome to my Coding Practice repository! Here I store programs and scripts that I have written for practicing Python.
In Trippy Dancer, I have written a program that replaces either the red or the white pixels in one image (Image 1) with the pixels of a second image (Image 2), giving it a trippy look (Images 3 and 4).
Image 1. Dancer | Image 2. Tie-dye | Image 3. Red pixels replaced | Image 4. White pixels replaced |
---|---|---|---|
In uk_referendum_datasets.py, I have modified a Python program (Sankaran 2023) that joins different datasets for a referendum in the UK, merges the datasets into a single dictionary, and then writes the values to a CSV file (Image 5). The program calculates summary statistics of the merged datasets, including finding the min/max, median, 25th percentile, and 75th percentile values and aggregates that are then written to CSV files (Images 6 and 7).
Image 5. Merged Dictionary | Image 6. Summary Statistics | Image 7. Dataset Aggregates |
---|---|---|
Sankaran, Vivek (2023). Python Cheat Sheet – Technical Concepts for the Job Interview (stratascratch). Blog post.