Photo by Myriam Jessier on Unsplash

A template for practicing data science with 6 simple steps

Practicing Data Science

A Practice Cycle

Photo by Nubelson Fernandes on Unsplash

A simple python script to start your day

The script in a nutshell

Image by author.

A tagging system to organize your notes

Note Taking Systems and Tags

Types of tags

Photo by Girl with red hat on Unsplash

Boosting your scripting productivity using slick custom keyboard shortcuts

From Simple Shortcuts to Quick Python Snippets

Why AutoHotkey?

Photo by Chris Ried on Unsplash

A quick introduction to C++ super basics using Python code as reference.

From Python to C++

Photo by Carlos Muza on Unsplash

Quick Python solutions to help your data science cycle

Why Snippets Matter for Data Science

1. Loading multiple files with glob and list comprehension

import glob
import pandas as pd
csv_files = glob.glob("path/to/folder/with/csvs/*.csv")
dfs = [pd.read_csv(filename) for filename in csv_files]

2. Getting unique values from a column table

import pandas as pd
df = pd.read_csv("path/to/csv/file.csv")
array(['FDA15', 'DRC01', 'FDN15', ..., …

Photo by Nubelson Fernandes on Unsplash

Practicing and visualizing your typing performance with python

Photo by Aleks Dorohovich on Unsplash

Using python and openai’s GPT-3 to summarize AI papers

Photo by James Harrison on Unsplash

A list of 12 ‘how to’ scripts in Python.


1. How to get combinations of n numbers in a list

from itertools import combinationslista = [1,2,3,4,5]print(list(combinations(lista,2)))
# Output
[(1, 2), (1, 3), (1, 4), (1, 5), (2, 3), (2, 4), (2, 5), (3, 4), (3, 5), (4, 5)]

2. How to get computer information on a windows machine

import win32apidef printInfo():
device = win32api.EnumDisplayDevices()
print((device.DeviceName, device.DeviceString))
settings = win32api.EnumDisplaySettings(device.DeviceName, -1)
for varName in ['Color', 'BitsPerPel', 'DisplayFrequency']:
print("%s: %s"%(varName, getattr(settings, varName)))

3. How to write a simple gaussian kernel

import numpy as np from…

Photo by Jakob Owens on Unsplash

Playing around with Swift for numeric computing.


0/1 Knapsack

Lucas Soares

Senior ML Engineer at K1 Digital. AI | Computer Vision| Data Science| Productivity | Learning

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store