With A/B testing there are times when you have to remove data from your dataset due to issues that skew your results. Pandas df.drop is pretty well covered but I had a hard time finding out how to drop multiple rows based on multiple values. Below is a walk through of how I approached that problem. A preview of my dataframe print(test_data.shape) (84, 9) So I have to remove two specific days that is only on our mobile traffic. First I created a new dataframe…Continue Reading “Removing multiple rows from your data with Python”

My most re-used Python code for A/B testing Import the things you need from matplotlib import pyplot as plt import pandas as pd import numpy as np from scipy import norm, stats, binom, mannwhitneyu There are a few ways the data could be set up. Step 1 is viewing the data you have, using the dataframe name like test_data or the .head() method. test_data.head() will give you something like the below: Once you have the test data you want to make sure the split was accurate. To do…Continue Reading “A/B Testing with Python”

The most Nobel of Prizes The Nobel Prize is perhaps the world’s most well known scientific award. Except for the honor, prestige and substantial prize money the recipient also gets a gold medal showing Alfred Nobel (1833 – 1896) who established the prize. Every year it’s given to scientists and scholars in the categories chemistry, literature, physics, physiology or medicine, economics, and peace. The first Nobel Prize was handed out in 1901, and at that time the Prize was very Eurocentric and male-focused, but nowadays…Continue Reading “A Visual History of Nobel Prize Winners”

Looking at another project that interested me from DataCamp. Bitcoin. Cryptocurrencies. So hot right now. Since the launch of Bitcoin in 2008, hundreds of similar projects based on the blockchain technology have emerged. We call these cryptocurrencies (also coins or cryptos in the Internet slang). Some are extremely valuable nowadays, and others may have the potential to become extremely valuable in the future1. In fact, on the 6th of December of 2017, Bitcoin has a market capitalization above $200 billion. The astonishing increase of Bitcoin market capitalization in…Continue Reading “Exploring Bitcoin”

In trying to learn Python I came across this project and data set from DataCamp. To me, this is my much preferred learning approach than just coding random things since it has real world application. Cookie Cats is a mobile puzzle game developed by Tactile Entertainment. It’s a classic “connect three”-style puzzle game where the player must connect tiles of the same color to clear the board and win the level. As players progress through the levels of the game, they will occasionally encounter gates that force…Continue Reading “Python & A/B Testing Apps”