Path: blob/main/Lab6/script_2_jupyter_notebook_py.ipynb
2714 views
lab var gender "household" member gender"
lab def gender 1 " female" 0 "male" lab val gender gender
3.3.5. Filtering data
3.3.7. Duplicates
See duplicatedes in rows.
We will drop the last duplication.
Agg
Aggregate using one or more operations over the specified axis.
Updated script
Examples
3.4. References
https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.agg.html
https://towardsdatascience.com/all-the-core-functions-of-python-pandas-you-need-to-know-d219cbd87636
https://pandas.pydata.org/docs/reference/api/pandas.melt.html#pandas.melt
https://stackoverflow.com/questions/47152691/how-can-i-pivot-a-dataframe
https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.pivot.html
https://stackoverflow.com/questions/11346283/renaming-column-names-in-pandas
Missing values
Groupby stackoverflow
https://stackoverflow.com/questions/55599120/pandas-groupby-agg-how-to-get-counts