Skip to content

Repository files navigation

Python Utils

python License: MIT License black Python Cookiecutter


Description

A Python package that includes several common Python util functions.


Installation

• Install the package using pip:

$ pip install git+https://github.com/shahriar-rahman/Python-Utils       

• Next, import and initialize it like the example below:

from python_utils import common_utils        

df = common_utils.create_df({'some_values': [5, 3, 2, 4, 9]})      
print(df.head(5))      

Usecases

• Create Dataframe

obj.create_df(key_dict={'col': 'values'})         

• Save Dataframe

obj.save_df(df, ext_type='csv', path)         

• Display Dataframe

obj.display_df(df, contents=5)         

• Load Dataframe

obj.load_df(ext_type='csv', library='pd', path='path_to_csv, d_type=False)           

About

A collection of common Python util functions.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages