Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 3.05 KB

README.md

File metadata and controls

25 lines (17 loc) · 3.05 KB

Coding Practice

Hello, welcome to my Coding Practice repository! Here I store programs and scripts that I have written for practicing Python.


Trippy Dancer

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
thumbnail_dancer thumbnail_Tie-dye thumbnail_trippy_dancer_1 thumbnail_trippy_dancer_2

Working With Datasets

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
image image image

Reference

Sankaran, Vivek (2023). Python Cheat Sheet – Technical Concepts for the Job Interview (stratascratch). Blog post.