Programming tips
by Brands · 25 things on Twos
- Dictionary Comprehensions
- Iterate through all keys/values in Dict
- Writing to CSV
- Lambda functions
- Lambda pandas
- Pandas Groupby and pivot
- Check if any null values exist in df = "df[df.isnull().any(axis=1)]"
- Statistics overview for pandas df = "df.describe(include='all')"
- Side by side bar matplotlib
- n = ? # Number of data (out of 2)
t = ? # Number of datasets
d = ? # Number of sets of bars
w = ? # Width of each bar
x_values = [t*element + w*n for element
in range(d)]
- Map to use a function on all columns
- restaurants.columns = map(str.lower, restaurants.columns)
- Where Method in Pandas
- Crosstab Pandas
- Melt Pandas
- Algorithms