Skip to main content

Some useful Pandas utility functions

Project description

Pandas Utility

GitHub Build Status Codacy Badge Python PyPI PyPI - Downloads saythanks

Some useful Pandas utility functions.

Installation

To install Pandas Utility, run this command in your terminal:

    pip install pandas_utility

This is the preferred method to install Pandas Utility, as it will always install the most recent stable release.

If you don't have pip installed, this Python installation guide can guide you through the process.

From sources

The sources for Pandas Utility can be downloaded from the Github repo.

You can either clone the public repository:

git clone git://github.com/mmphego/pandas_utility

Or download the tarball:

curl  -OL https://github.com/mmphego/pandas_utility/tarball/master

Once you have a copy of the source, you can install it with:

pip install -U .

Usage

In [1]: from pandas_utility import PandasUtilities as utils
   ...:
   ...: df = utils.create_random_df(3, 5)

In [2]: df
Out[2]:
          0         1         2         3         4
0  0.056019  0.608052  0.434670  0.712330  0.602797
1  0.050986  0.458700  0.899288  0.783495  0.683170
2  0.232940  0.707126  0.639882  0.675283  0.793030

In [3]: df = utils.rename_cols(df, new_names=['col A', 'col B', 'col C', 'col D', 'col E'])

In [4]: df
Out[4]:
      col_A     col_B     col_C     col_D     col_E
0  0.056019  0.608052  0.434670  0.712330  0.602797
1  0.050986  0.458700  0.899288  0.783495  0.683170
2  0.232940  0.707126  0.639882  0.675283  0.793030

Oh, Thanks!

By the way... Click if you'd like to saythanks... :) else Star it.

✨🍰✨

Feedback

Feel free to fork it or send me PR to improve it.

Credits

This package was created with Cookiecutter and the mmphego/cookiecutter-python-package project template.

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

pandas_utility-0.1.3.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

pandas_utility-0.1.3-py2.py3-none-any.whl (7.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pandas_utility-0.1.3.tar.gz.

File metadata

  • Download URL: pandas_utility-0.1.3.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.7

File hashes

Hashes for pandas_utility-0.1.3.tar.gz
Algorithm Hash digest
SHA256 05ce80b18fb750b91bea1d1b62b944cb0843c0d4df33d57399d60d9045d547d0
MD5 ec33d18f75b5744d43042961ade1047d
BLAKE2b-256 b3206d89840ea73ea445bd4b5b1165188550987f4ace994a682cf23c2a3f9f23

See more details on using hashes here.

File details

Details for the file pandas_utility-0.1.3-py2.py3-none-any.whl.

File metadata

  • Download URL: pandas_utility-0.1.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.7

File hashes

Hashes for pandas_utility-0.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e727c083533075aabda6838c762888dee15eba911fab439de84e44e3fcf53963
MD5 e2f24939c5c7aca417a88effa736655d
BLAKE2b-256 8f1b318f663187a0a0e6c88377428ac2cb3545d370d111697348d9b8fc8320c8

See more details on using hashes here.

Supported by

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