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
Release files for merge-dataframes 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| merge_dataframes-0.1.1.tar.gz | 2.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| merge_dataframes-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.7 kB
Release files / merge_dataframes-0.1.1.tar.gz
| Download URL | merge_dataframes-0.1.1.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
991da8ec38a841c1b81138c25887f7ee7991c7aa38e48ac13f119b8bca8454e2
|
|
BLAKE2b-256 checksum How to use checksums |
8d6d154dc4ddddc861466fc55aa390524c15b81375eaec65dd8b409fda5b1b55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / merge_dataframes-0.1.1-py3-none-any.whl
| Download URL | merge_dataframes-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
abb073aeb7921c616a1c22e66b822a24de79c5e23340c77603a1703e11632abc
|
|
BLAKE2b-256 checksum How to use checksums |
ba91d1f88c57d3af8588c81c73c8fee68dae4104d8549d5c2630ec521700b415
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|