Skip to main content

my wrapper functions and classes for python

Project description

oxyba -- my wrapper functions and classes for python

Don't use this package.

I decided to apply the micro packaging approach instead of dumping everything into this package.

The oxyba package contains my wrapper functions and classes.

There is no particular purpose nor structure within this package. New wrapper functions and classes are just added to main package folder.

I advise against using any of this code in production.
Just don't. Feel free to copy code and adjust it to your own needs.

Installation

Check the source code at https://github.com/ulf1/oxyba

pip install oxyba

Load the package

I am going to use the ox shortcut

import oxyba as ox

Examples

Versioning

After v0.1.11 the versioning rules changed. A version X.Y.Z will have the following meaning.

  • X: Major changes for the package
  • Y: New function, class, module was added
  • Z: Bugfixes, minor changes

Notes to myself

  1. Update setup.py (version, requirements)
  2. Update CHANGES.txt (what's added, changed, removed?)
  3. Run: python setup.py sdist upload -r pypi
  • use flake8 --ignore=F401
  • use autopep8 --in-place oxyba/*.py

Functions

Sampling, Resampling

  • block_idxmat_sets
  • block_idxmat_shuffle
  • crossvalidation_loop
  • crossvalidation_stats
  • threeway_split -- replaced by threesplit pypi package
  • jackknife_loop -- replaced by jackknife
  • jackknife_stats -- replaced by jackknife

Data Cleaning with Pandas

  • clean_add_strdec
  • clean_dateobject_to_string
  • clean_german_date
  • clean_german_number
  • clean_to_decimal

Data Cleaning (other)

  • date_to_datetime
  • drop_empty_records

Feature/Variable Checking

  • features_check_singular
  • isordinal

Correlations Matricies

DataViz

Correlation Matrix Adjustment

  • illcond_corrmat -- replaced by illmat pypi package
  • subjcorr_luriegold -- replaced by luriegold pypi package
  • subjcorr_kfactor -- replaced by kfactor pypi package
  • subjcorr_onepara -- replaced by onepara pypi package

Random Variables

Random Correlated Variables

  • rand_bivar
  • rand_chol
  • rand_imancon

Random Dates

  • rand_dates -- replaced by randdate pypi package

Date Functions

  • yearfrac_365q

Other stats

  • nominal_count
  • nominal_mode
  • norm_mle

Linear Regression

  • linreg_ridge_lu
  • linreg_mle
  • linreg_ols_lu
  • linreg_ols_pinv
  • linreg_ols_qr
  • linreg_ols_svd

linreg_ols_utils.py

  • linreg_predict
  • linreg_residuals
  • linreg_ssr
  • linreg_mse
  • linreg_rmse

Financial Models

  • leland94

Databases

  • mysql_batch_and_fetch

Python

  • pip_upgrade

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oxyba-0.31.1.tar.gz (23.4 kB view details)

Uploaded Source

File details

Details for the file oxyba-0.31.1.tar.gz.

File metadata

  • Download URL: oxyba-0.31.1.tar.gz
  • Upload date:
  • Size: 23.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.2

File hashes

Hashes for oxyba-0.31.1.tar.gz
Algorithm Hash digest
SHA256 685e2f51eec482ec104ddd32cb4239214c417b72df9229bbd6a0f0044f57d1b3
MD5 67d6f7ffff38c6ae7194a81131cbb9ab
BLAKE2b-256 325d454f491dc53c144eefc5f81bcd6993e655f4fc0ef9dbbc559ad7f98a4ca8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page