Skip to content

Instantly share code, notes, and snippets.

@ZeccaLehn
Created July 17, 2019 21:38
Show Gist options
  • Save ZeccaLehn/66430dfe3047a394338f2ff0ebe51db4 to your computer and use it in GitHub Desktop.
Save ZeccaLehn/66430dfe3047a394338f2ff0ebe51db4 to your computer and use it in GitHub Desktop.
Boxplot Python
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
data = pd.read_csv('Stages.csv').dropna()
x = "Stage"
y = "Experimental"
plt.figure(figsize=(15,16))
sns.boxplot(x = x, y = y, data=data)
sns.swarmplot(x = x, y = y, data = data, color=".1")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment