Contains miscellaneous Python code useful to Jake Westfall (and maybe others).
- Free software: MIT license
- Documentation: https://jwpy.readthedocs.io.
explore_funcs
modulesummarize_df()
: Quick summary of most important DataFrame infoaov_xtab()
: Exploratory function for examining crossing of two many-leveled factors
sas_fwf
moduleread_hcup()
: Reads in fixed-width text data files that are in the format used by HCUPread_mhos()
: Reads in fixed-width text data files that are in the format used by MHOSstack_chunks()
: Concatenate DataFrames without upcasting categoricals to objects
betabinom
modulebetabinom
: Class implementing likelihood function for beta-binomial model; can be plugged intostatsmodels
misc
moduleTimer
: Class for printing the execution time of expressions (use withwith
statement)header
: Constant (string) useful for filling in top of new Python scriptsalign_cols()
: Wrapper for pandas.DataFrame.align(..., axis=1) that prepares column dtypes for stackinghcup_datadict()
: For quickly, easily building data dictionaries for HCUP datasets
pip install git+https://github.com/jake-westfall/jwpy.git
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.