Utility Functions, Wrappers for pandas Module
Project description
Pandas-Wizard
Pandas-Wizard (pandaswizard
) is a simple Python module for providing
utility functions and wrappers for the pandas
module. The module is kept simple and use of external dependencies is minimized
unless needed to enhance performance.
This is a relatively new repository, and if you find any performance or improvement scope please check the contributing guidelines for the organization. All help and criticism are appreciated. If you find any additional use cases please create a pull request or submit for a new feature.
Getting Started
The source code is currently hosted at GitHub: sharkutilities/pandas-wizard. The binary installers for the latest release are available at the Python Package Index (PyPI).
pip install -U pandas-wizard
The list of changes between each release is available here.
The purpose of the below guide is to illustrate the main features of pandas-wizard and assume the working knowledge of
the pandas
module and use cases. The below example calculates the percentile of
pandas.DataFrameGroupBy
object using np.percentile
.
import pandaswizard as pdw
percentiles = df.groupby("group").agg({"A" : pdw.percentile(50)})
percentiles.head()
The above function calculates the 50th percentile, i.e., the median of the feature "A" based on the grouped column "group" from the data frame.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for pandas_wizard-1.0.1.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 896cb5e3effd8120c3f9ba5e0b7436df5c840eda4105092213254ea6cc54a413 |
|
MD5 | 6dd622af09a6dfc4278e46c2d122f1d0 |
|
BLAKE2b-256 | a85674ff7fc8a0fc3f97474b7f160033dc804a3939827a3c0d96fbe4e45784d6 |