Skip to main content

ResFeci for Excel

In it's current state, this package will allow you to quickly split a single Excel sheet into either separate tabs within the same report or into different Excel reports. For example, if Column 'B' of your Excel report contains "Names" and "Jack" appears in 3 rows and "Jill" appears in 2, then, this will split the report into 2 separate reports (one for only Jack's rows and another for only Jill's rows); alternatively, this will create a new report with tabs entitled "Jack" and "Jill".

By default, the script will split the first worksheet. However, the user may select a specific sheet to split through an optional parameter (see below examples).

IMPORTANT: Your sheet must contain a header row to function properly!

EXAMPLE OF SPLITTING AN EXCEL SHEET BY UNIQUE VALUES IN COLUMN B INTO DIFFERENT REPORTS

from resfeci import excel_split

excel_split.split_into_separate_reports(input_report_path= 'PATH_TO_REPORT.xlsx' , column_number_to_split_by=2)

EXAMPLE OF SPLITTING AN EXCEL SHEET BY UNIQUE VALUES IN COLUMN B INTO DIFFERENT TABS OF THE SAME REPORT

from resfeci import excel_split

excel_split.split_into_new_tabs_of_single_report(input_report_path= 'PATH_TO_REPORT.xlsx' , column_number_to_split_by=2)

EXAMPLE OF SPLITTING AN EXCEL SHEET BY UNIQUE VALUES IN COLUMN 'C' OF A WORKSHEET CALLED 'NAMES' INTO DIFFERENT REPORTS

from resfeci import excel_split

excel_split.split_into_separate_reports(input_report_path= 'PATH_TO_REPORT.xlsx' , column_number_to_split_by=3, sheet='NAMES')

PARAMETER DESCRIPTIONS

input_report_path = the path to the report to be split

column_number_to_split_by = the NUMBER of the Excel column to split by (A = 1, B = 2, C =3, etc.)

sheet = OPTIONAL parameter which allows you to enter the name of the specific sheet to split. By default, the script will split the first worksheet.

DEPENDENCIES Openpyxl, Pandas

KNOWN ISSUE The current version of this script does not support transfer of formulas!!

Release files for resfeci 0.0.19

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for resfeci 0.0.19
File Size Uploaded
resfeci-0.0.19.tar.gz 4.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for resfeci 0.0.19
File Interpreter ABI Platform
resfeci-0.0.19-py3-none-any.whl Python 3 none any Details

Total release size: 9.6 kB

Release files / resfeci-0.0.19.tar.gz

Download URL resfeci-0.0.19.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
15e43755a2b847bb0cf46f9c48befe92db9f9217f42dfa69bc6ea4487a510804
BLAKE2b-256 checksum
How to use checksums
09a416b7ea678714dfec8b6cfe06413f174da3a2912a0845d6e45276194f60e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.0

Release files / resfeci-0.0.19-py3-none-any.whl

Download URL resfeci-0.0.19-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d39ba41acc140f15f67f23c17df60da53157c3c90b102ab7f86da46667483b18
BLAKE2b-256 checksum
How to use checksums
3196c8f1782b1b30e19682c778e7c37bd9a686e0a93835aceaf4334399aa5c23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.0
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page