A Python package to merge two Pandas DataFrames
Project description
Merge DataFrames
This module contains a function to merge two Pandas DataFrames on a specified column with a specified join type.
Installation
To install this package, use the following command:
pip install git+https://github.com/laxmankusuma/merge_dataframes.git
Usage:
from merge_dataframes.merge_dataframes import merge_dataframes
import pandas as pd
df1 = pd.DataFrame({'id': [1, 2, 3], 'name': ['Alice', 'Bob', 'Charlie']})
df2 = pd.DataFrame({'id': [1, 2, 4], 'age': [24, 25, 23]})
merged_df = merge_dataframes(df1, df2, on='id', how='inner')
print(merged_df)
To make this code into a wheel file, follow the steps below:
pip install setuptools wheel
python setup.py bdist_wheel
This will create a dist directory containing a .whl file.
To install the .whl file created in the dist directory:
Install the .whl File: Use the following pip command to install the .whl file:
pip install /path/to/yourfile.whl
Replace /path/to/yourfile.whl with the actual path to your .whl file. For example:
pip install dist/merge_dataframes-0.1.0-py3-none-any.whl
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 Distribution
Built Distribution
File details
Details for the file merge_dataframes-0.1.1.tar.gz
.
File metadata
- Download URL: merge_dataframes-0.1.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
991da8ec38a841c1b81138c25887f7ee7991c7aa38e48ac13f119b8bca8454e2
|
|
MD5 |
d8d7cd7d11f18233425e6ef3b2aec3b9
|
|
BLAKE2b-256 |
8d6d154dc4ddddc861466fc55aa390524c15b81375eaec65dd8b409fda5b1b55
|
File details
Details for the file merge_dataframes-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: merge_dataframes-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
abb073aeb7921c616a1c22e66b822a24de79c5e23340c77603a1703e11632abc
|
|
MD5 |
a882cfd9758e8799eda022c61a37067d
|
|
BLAKE2b-256 |
ba91d1f88c57d3af8588c81c73c8fee68dae4104d8549d5c2630ec521700b415
|