Skip to content

henrywkk/python-pandas

Repository files navigation

python-pandas

My pandas example

A library or placeholder for myself to put the pandas examples so that I can reuse or take reference in the future.

select_rows.py - select rows from a DataFrame based on values in some column

top3.py - top 3 items group by another column

parent_id_lookup.py - Merge multiple rows from same dataframe based on parent id

group_by_month_count.py - Count the number instances of date for any month-year combination

merge_as_new_columns.py - Merge dataframes with output on extra columns

fillna_with_avg.py - Fill empty values with average of other values based on group by

multiple_condition_next_column_val.py - Populate row with next conditional value based on multiple columns

groupby-total.py - Add aggregated/summary lines in dataframe

transpose_row3col.py - Transpose dataframe columns based on a column's row values

About

My pandas example

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages