Python functions for Customer Analytics at the Rady School of Management (RSM)
- Pandas cheat sheet
- Pandas vs R
- Pandas vs R
- Pandas vs R
- Split-Appy-Combine in Pandas
- Split-Appy-Combine in Pandas
- "assign" in Pandas
- Condition count
value_counts
in Pandas- Convert column to string or categorical:
- df['zipcode'] = df.zipcode.astype(str)
- df['zipcode'] = df.zipcode.astype('category')
- Python for everyone (https://www.py4e.com)
- List object attributes:
- dir(instance)
- instance.dir()
- instance.dict
- type
- dtype