This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rfs = tech.loc[(tech.Subcategory.isin(("Robots", "Flight", "Sound"))), :] | |
print_n_projects(rfs, "rfs") | |
>>> There are 1667 projects in rfs. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tech = dataset.loc[(dataset.Category=='Technology'), :] | |
print_n_projects(tech, 'Technology') | |
print_projects_by(tech, 'ID', 'count') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
list(dataset.Category.unique()) | |
>>> ['Fashion', 'Film & Video', 'Art', 'Technology', 'Journalism', 'Publishing', | |
'Theater', 'Music', 'Photography', 'Games', 'Design', 'Food', 'Crafts', | |
'Comics', 'Dance'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dataset = pd.read_csv('kickstarter_projects.csv') | |
dataset.head() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
import pandas as pd | |
import seaborn as sns | |
# A few helper functions: | |
from utils import * | |
# To illustrate examples | |
import numpy as np | |
from scipy.stats import mannwhitneyu, normaltest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
import permutations_stats.permutations as pms | |
import seaborn as sns | |
from statannotations.statannotations import Annotator | |
from statannotations.stats.StatTest import StatTest | |
stat_test = StatTest(func=pms.permutation_test, | |
test="brunner_munzel", | |
test_long_name="Brunner Munzel exact test", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#-*- coding: utf-8 -*- | |
# Supporting Python 3 and JabRef csv file | |
import os | |
import re | |
import sys | |
try: | |
bibtexdb = open(sys.argv[1]).read() |
NewerOlder