@codingboo
Elena Chen
3 years
#Day8 of #DataAnalytics #pandas - .groupby(' ') similar to SQL syntax to group rows of data tgt and call aggregate functions eg .mean() - .concat([ ]) pass in list of dataframes and join rows tgt. For columns, specify axis=1. (stacking vertically or horizontally)
1
0
0

Replies

@codingboo
Elena Chen
3 years
.merge() for merging DataFrames based on values of specified columns, and handles overlapping data using how=' ' parameter. Default: 'inner', can change to outer/left/right .join() mainly used for merging DataFrames based on the index rather than column values. Only inner join
0
0
0