Git Product home page Git Product logo

pandas_utility's Introduction

Pandas Utility

GitHub Coverage Status Build Status Codacy Badge Python PyPI PyPI - Downloads saythanks Donate

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

Donations

If you like this and want to buy me a cup of coffee, please click the donation button above or click this link

Also you can click if you'd like to saythanks... :) else Star it.

✨🍰✨

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Changelog

Every release, along with the migration instructions, is documented on the Github Releases page.

Credits

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

pandas_utility's People

Contributors

mmphego avatar

Stargazers

Alan Szmyt avatar Hans Alemão avatar Seng Weng Hoong avatar Erfan Nourbakhsh avatar Toufeeq Ockards avatar Muhammad avatar  avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.