Skip to content

Instantly share code, notes, and snippets.

View rocarvaj's full-sized avatar

Rodolfo Carvajal rocarvaj

View GitHub Profile
rocarvaj /
Last active August 3, 2016 20:07 — forked from bsweger/
Useful Pandas Snippets
# Merging a pandas groupby result back into DataFrame
# Ref:
df['maxval'] = df.groupby(by=['idn']).transform('max')
#Print full dataframe
def print_full(x):
pd.set_option('display.max_rows', len(x))