Project : df2file:
A Python utility designed for efficiently appending Pandas DataFrames to a single Excel file, each in a separate sheet.
Features:
-
Convenient Dataframe Appending: Easily append Pandas DataFrames to an existing Excel file, with each DataFrame creating a new sheet within the workbook.
-
Sheet Customization: Specify sheet names, starting row positions, and other options to customize the placement of each DataFrame within the Excel file.
-
Excel File Management: If the specified Excel file does not exist, the utility will create it. If it does exist, the utility will append DataFrames to existing sheets or create new sheets as needed.
Installation:
url = https://pypi.org/project/df-to-excel-appender/
Install the package using pip:
1.pip install df2file
2.from df2file.df_to_file import append_df_to_excel
3.from df2file.df_to_file import append_df_to_csv
Use the function to append a DataFrame to an Excel file:
Example usage:
output_file = 'output.xlsx' your_dataframe = pd.DataFrame({'Column1': [1, 2, 3], 'Column2': ['A', 'B', 'C']}) append_df_to_excel(output_file, your_dataframe, sheet_name='Sheet1', index=False)
Run the script from the command line:
df_to_excel_appender input.csv -o output.xlsx
Options:
-i, --input: Input CSV file.
-o, --output: Output Excel file.
Dependencies:
pandas
openpyxl
Contributing:
If you find any issues or have suggestions for improvements, please open an issue or create a pull request.
License:
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for df2file 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| df2file-2.0.0.tar.gz | 2.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| df2file-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.9 kB
Release files / df2file-2.0.0.tar.gz
| Download URL | df2file-2.0.0.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dd2055452fc2cc95012d08737404241c7af6f53657c7a9877c61c50f6e57bf7f
|
|
BLAKE2b-256 checksum How to use checksums |
b9fedbfaecf262695543e358457ee45c2b545c23568229a600011924e13e8d84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.8.4
|
Release files / df2file-2.0.0-py3-none-any.whl
| Download URL | df2file-2.0.0-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1bcfced8f1bb3bda365f95d84d8e84f25c87a092cfe80e57fa2d6b8538224982
|
|
BLAKE2b-256 checksum How to use checksums |
c8d26dff26d645b3ff37946df62ca48e09cbf0a96ff130573c4010dcf00e67af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.8.4
|
Security for df2file 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.