Skip to content

Instantly share code, notes, and snippets.

View FelixChop's full-sized avatar

Félix Revert FelixChop

View GitHub Profile
data.describe()
data[data['column_1'].isin(['french', 'english'])]
data['column_1'].map(len).map(lambda x: x/100).plot()
from tqdm import tqdm_notebook
tqdm_notebook().pandas()
data['column_1'].progress_map(lambda x: x.count('e'))
data.corr()
data.corr().applymap(lambda x: int(x*100)/100)
pd.plotting.scatter_matrix(data, figsize=(12,8))
data.merge(other_data, on=['column_1', 'column_2', 'column_3'])
data.groupby('column_1')['column_2'].apply(sum).reset_index()
dictionary = {}
for i,row in data.iterrows():
dictionary[row['column_1']] = row['column_2']