Ways to write better Python codes
Source: 11 Tips And Tricks To Write Better Python Code 1. Iterate with enumerate instead of range(len(x)) data = [1, 2, -4 , -3] for i, num in enumerate(data): if num < 0: data[i] = 0 print(...
Source: 11 Tips And Tricks To Write Better Python Code 1. Iterate with enumerate instead of range(len(x)) data = [1, 2, -4 , -3] for i, num in enumerate(data): if num < 0: data[i] = 0 print(...
Install the version e.g. Python version 3.9: sudo apt update # sudo apt install software-properties-common sudo add-apt-repository ppa:deadsnakes/ppa sudo apt install python3.9 Install the devel...
Here is a repository containing template projects and exercises involving data analytics ๐ Data Analytics An ML pipeline can look something like this: Data acquisition and cleaning Explorato...
This journey is based on the Udemy course 100 Days of Code - The Python Pro Bootcamp by Dr. Angela Yu. My code repo is here ๐: 100DaysOfCode-Python I document my progress in this post: programmin...
Iโve finished the Scientific Programming with Python course in freeCodeCamp and earned a Certificate! Here is my repo ๐: freeCodeCamp Projects. Will add to this in case I do another course in the...
For October, the Python and Game Development study groups of Women Who Code Manila collaborated on learning how to make games using Python. Porch, Alysson, and I led the discussion on making visua...
Something that I came across today that I donโt use often are ternary operators in Python. These are just conditional statements that are written succintly in a line: [on_true] if [expression] els...
Get the link for the source code from the Python Software Foundation. Run the following in the terminal. sudo apt update sudo apt install build-essential \ zlib1g-dev libncurses5-dev libg...
Core code snippet for scikit-learn machine learning applications using the iris dataset and k-Nearest Neighbor classifier from sklearn.datasets import load_iris from sklearn.model_selection import...
Here is a non-exhaustive, most-likely-to-evolve list of my favorite books and materials. I often find my self going through these resources as a way to learn or refresh my memory, so it is a small ...