⚡ BizPack
____ _ ____ _
| __ )(_)___| _ \ __ _ ___| | __
| _ \| |_ /| |_) / _` |/ __| |/ /
| |_) | |/ / | __/ (_| | (__| <
|____/|_/___||_| \__,_|\___|_|\_\
The Intelligent Business Data Engine for Python
Transform chaotic, multi-currency corporate spreadsheets into pristine, audit-ready DataFrames in 1 line.
Zero regex. Accurate mixed currencies. Zero NaT dates. Native business formulas.
What It Does & Doesn't Do • Benefits • Use Cases • Who Is This For? • Quickstart • The 5 Disasters • Two-Tier Date Engine • API Reference
🎯 Overview: What BizPack Does vs. What It Doesn't Do
To build trustworthy data infrastructure, developers and business analysts need to know exactly what a library handles—and what boundaries it respects.
✅ What BizPack Does
- Automated Ingestion Hygiene: Converts messy, human-formatted spreadsheet exports (CSV, TSV, Excel) into standardized, type-safe
pandas.DataFrameobjects in a single line. - Contextual Two-Tier Date Resolution: Deduces
DD/MM/YYYYvsMM/DD/YYYYby combining column frequency heuristics with row-level partner signals (currency symbols, country/region names), achieving 0 droppedNaTrows. - Intelligent Multi-Currency Normalization: Detects mixed international currencies (
₹,$,€,£,Rs.), accounting negatives($1,200), and European decimal notations (41.392,35), prompting interactively or applying configurable FX matrices. - Full Audit Trail Transparency: Preserves conversion history, applied exchange rates, and discarded footer rows in non-destructive DataFrame metadata (
df.attrs). - Leading Zero & ID Protection: Protects critical identifiers (ZIP codes, account numbers, SKUs like
00124or07001) from being mangled into truncated integers. - Pythonic Excel Business Math: Vectorized, intuitive implementations of standard analyst routines:
bp.xlookup(),bp.pareto()(80/20 distribution with auto-narrative),bp.growth()(MoM/YoY), andbp.run_rate()(quota pacing). - Boardroom Display Formatter: Instantly converts calculation-ready floats back into executive presentation strings (
$ 1,250.00,(9.8%),33.3%).
❌ What BizPack Does NOT Do
- Does NOT Impute or Hallucinate Missing Data: BizPack never invents numbers or fills empty cells with arbitrary guesses. Blanks and spreadsheet error strings (
#REF!,#N/A,-) become truenp.nan. - Does NOT Lock You Into a Proprietary Data Structure: BizPack does not create a wrapper object. It accepts standard
pandas.DataFrameand returns standardpandas.DataFrame. - Does NOT Overwrite Source Files:
clean_file()never overwrites your original input CSV in-place; all writes go to a designated output destination. - Does NOT Require Heavy Compilers or Cloud Runtimes: No JVM, Spark, Docker, C++ toolchains, or mandatory network calls. Runs 100% locally with pure
pandasandnumpy. - Does NOT Try to Be an Orchestrator: BizPack is not Airflow, dbt, or Spark. It is a focused data preparation and business analysis engine.
🏆 Benefits of Using BizPack
| Benefit Pillar | The Raw Pandas / Manual Way | The BizPack Advantage |
|---|---|---|
| ⚡ 90% Less Boilerplate | 30–50 lines of brittle regex, .str.replace(), lambda functions, and pd.to_datetime() try/except blocks per script. |
1 line: df = bp.clean(df) or df = bp.read_csv("data.csv"). |
| 🛡️ Financial Accuracy | Stripping currency symbols blindly sums $100 + ₹8,900 = 9000, causing multi-million-dollar ledger errors. Accounting brackets ($1,200) become positive. |
Mixed currencies are converted via real exchange rates. Accounting brackets become true negative numbers (-1200.0). |
| 📅 Zero Dropped Dates | Mixed DD/MM vs MM/DD dates fail pd.to_datetime() or silently invert months, dropping rows to NaT. |
Two-Tier Engine uses row context (country/currency) to correctly parse mixed formats with 0% data loss. |
| 🔍 Audit Transparency | Custom cleaning scripts leave zero record of what exchange rates or heuristics were applied. | All conversions, FX rates, and extracted total rows are logged to df.attrs for automated audit compliance. |
| 🚀 Native Interoperability | Complex custom classes break standard Pandas workflows. | Works directly as a Pandas accessor (df.biz.clean()) and returns standard Pandas DataFrames. |
| 📦 Zero Bloat | Modern data packages often pull in hundreds of megabytes of heavy C++ dependencies. | Pure Python + Pandas + NumPy. Installs in seconds, runs everywhere. |
💼 What You Can Do With BizPack
BizPack is purpose-built for analytics engineers, financial analysts, operations leaders, and Python developers:
┌────────────────────────────────────────────────────────────────────────────────┐
│ REAL-WORLD APPLICATIONS │
├────────────────────────────────────────────────────────────────────────────────┤
│ 1. Multinational Revenue Consolidation │
│ Unify regional sales extracts (APAC ₹, EMEA €, US $) into 1 corporate base │
│ currency with real FX rates in seconds. │
│ │
│ 2. Bulletproof Ingestion for Dashboards (Streamlit, Dash, PowerBI) │
│ Prevent downstream crashes caused by string numbers, accounting brackets, │
│ or mixed date formats before data reaches visualizations. │
│ │
│ 3. Automated Executive Pareto (80/20) Concentration Audits │
│ Instantly identify the top 20% of customer accounts driving 80% of quarterly│
│ revenue with auto-generated executive commentary. │
│ │
│ 4. Cross-System ERP & CRM Reconciliation │
│ Join disparate tables via clean `bp.xlookup()` without messy multi-line │
│ `df.merge()` key management and suffix collisions. │
│ │
│ 5. Sales Pacing & Run-Rate Projections │
│ Track month-to-date and quarter-to-date performance against sales quotas, │
│ projecting month-end finish with zero manual date math. │
└────────────────────────────────────────────────────────────────────────────────┘
👥 Who Is This For?
| Persona | The Daily Frustration | Why BizPack Is a Game Changer |
|---|---|---|
| 📊 Financial & FP&A Analysts | Tired of writing 20+ lines of brittle regex just to handle accounting parentheses ($1,200), mixed international currencies (₹, $, €), and losing hours doing basic XLOOKUP or MoM Growth in Pandas. |
Speak business, not boilerplate. Clean entire financial ledgers in 1 line and run bp.xlookup() and bp.growth() natively without wrestling with Pandas join suffixes. |
| 🛠️ Analytics Engineers & BI Devs | User-uploaded spreadsheets constantly crash downstream Streamlit, Dash, or Power BI pipelines due to uncleaned headers, stray #REF! errors, empty footer rows, or date parsing crashes. |
Bulletproof ingestion gateway. Place bp.clean() at the top of your ingestion DAG to sanitize raw CSVs/Excels into pristine, type-safe DataFrames before they touch your warehouse. |
| 💼 Revenue Operations (RevOps) | Consolidating multinational sales reports where APAC logs in ₹, EMEA in €, and US in $. Summing columns naively creates disastrous ledger miscalculations. |
Multi-currency standardization. BizPack automatically detects mixed currencies, prompts interactively or applies FX matrices, and records an unalterable audit log for finance. |
| 🔬 Data Scientists & ML Engineers | Feature pipelines fail when numeric conversions silently wipe leading zeros from account IDs, postal codes, and tax identifiers ("00124" $\rightarrow$ 124). |
Identifier & string fidelity. Protects code columns from integer truncation while vectorizing type conversions across hundreds of thousands of rows. |
| 🎓 Excel Power Users Transitioning to Python | Want the speed and automation of Python, but find Pandas' multi-line .groupby(), .shift(1), and .merge() syntax counter-intuitive compared to standard spreadsheet formulas. |
Zero learning curve. Functions work like Excel formulas (xlookup, pareto, growth, run_rate) while running at native C/NumPy speed. |
🚨 Why BizPack? The 5 Silent Disasters of Raw Pandas
Pandas was engineered for general data science and statistical computing. When applied to real-world corporate spreadsheets (exported from SAP, Salesforce, Oracle, or Excel), raw Pandas triggers silent financial inaccuracies:
| # | The Silent Disaster in Pandas | What Actually Happens | How BizPack Solves It |
|---|---|---|---|
| 1 | Multi-Currency Conflation | A global report contains $100, €100, and ₹8,900. Naive regex strips the symbols and sums 100 + 100 + 8900 = 9100. |
Catastrophic financial error. BizPack detects multi-currency columns, prompts for a target currency, and applies exchange rates: $100 + $108.70 + $105.95 = $314.65. |
| 2 | Silent Day/Month Inversion | In mixed global exports, 05/09/2024 from India is Sept 5th, while 05/09/2024 from the US is May 9th. pd.to_datetime() applies a single guess or turns rows into NaT. |
Two-Tier Date Engine inspects partner columns (Region, ₹ vs $) row-by-row to disambiguate dates without dropping a single row. |
| 3 | Accounting Parentheses Trap | Financial deficits are formatted as ($14,200.00). Naive regex strips non-digits, converting losses into positive +14200.00. |
Losses are converted to company profits! BizPack parses accounting parentheses into true negative numbers (-14200.0). |
| 4 | Leading Zero Erasure | ZIP code "00124" or Account "00007" is parsed as numeric integer 124 and 7. |
Account keys break across ERP systems. BizPack identifies ID and code columns and preserves leading zero string fidelity. |
| 5 | The Grand Total Inflation | Spreadsheets often include a "Grand Total" footer row. Downstream df['revenue'].sum() includes the footer. |
Reported company revenue is silently doubled. BizPack identifies and strips totals rows, archiving them in df.attrs['totals']. |
⚡ Quickstart in 4 Lines
Clean dirty spreadsheet exports into analysis-ready dataframes with zero configuration:
import bizpack as bp
# 1. Inspect the raw export
print("Before cleaning:\n", bp.read_csv("dirty_data.csv", clean=False).head(5))
# 2. Clean and save in a single call
clean_df = bp.clean_file("dirty_data.csv", "clean_data.csv")
# 3. View the pristine output
print("\nAfter cleaning:\n", clean_df.head(5))
🖥️ Interactive Terminal Experience
When bizpack encounters mixed currencies in an interactive session, it pauses and prompts the analyst directly:
[BizPack Alert] 🌍 Multiple currencies detected in column 'gross_revenue': [EUR, GBP, INR, USD]
Which currency would you like to standardize to? (default: USD): USD
[BizPack Success] ✔ Standardized 100 rows to USD (rates: EUR=1.087, GBP=1.282, INR=0.0119)
🏥 1-Line Data Health Scorecard (bp.audit())
Audit your dataset before cleaning to uncover silent currency conflation, date ambiguity, and ID truncation risks:
import bizpack as bp
df = bp.read_csv("dirty_data.csv", clean=False)
bp.audit(df)
# Also available on DataFrames: df.biz.audit()
==================================================================
BIZPACK DATA HEALTH AUDIT SCORECARD
==================================================================
Overall Health Score: 0 / 100 [CRITICAL]
Records Analyzed: 101 rows | 10 columns
Data Completeness: 86.4%
------------------------------------------------------------------
ISSUES DETECTED:
[!] [WARN] Columns ['Blank Column']: 1 column(s) are 100% empty and should be dropped.
[!] [HIGH] Footer: Detected 'Grand Total' summary row (risk of 2x revenue inflation).
[!] [HIGH] Order Date: Contradictory dates in same column (both DD/MM and MM/DD found).
[!] [HIGH] Gross Revenue: Multi-currency conflict detected: ['EUR', 'GBP', 'INR', 'USD'].
[!] [HIGH] Unit Cost: Multi-currency conflict detected: ['EUR', 'GBP', 'INR', 'USD'].
------------------------------------------------------------------
RECOMMENDATION: Severe defects detected. Immediate `bp.clean()` required before any math.
==================================================================
🌐 Interactive Web Playground (Streamlit)
Prefer a no-code visual interface? Launch the built-in browser playground:
streamlit run app.py
Drag-and-drop any CSV or Excel spreadsheet to inspect health scores, toggle currency conversions, view live Pareto 80/20 distributions, and download clean data.
📊 Before vs. After Showcase
Input: Raw Corporate Spreadsheet (dirty_data.csv)
Customer Name / Client , Account # , Order Date (UTC) , Region / Territory , Gross Revenue , Unit Cost , Profit Margin % , Active Subscription? , Blank Column
Acme Corp,00124,25/03/2024,APAC,"₹ 1,49,670.67","₹ 84,078.93",33.3%,false,,
Wayne Enterprises,00235,03/25/2024,USA,"($ 12,865.27)","$ 8,045.42",(9.8%),true,,
Massive Dynamic,00280,14.12.2024,Europe,"£ 5,306.25","£ 3,494.04",22.0%,Y,,
Soylent Corp,00945,05/09/2024,India,"₹ 1,17,418.70","₹ 76,087.98",17.3%,No,,
Hooli Inc,00234,05/09/2024,North America,"$ 59,426.74","$ 41,967.12",51.8%,Yes,,
Grand Total,,,,$ 243,901.00,$ 156,012.00,36.0%,,,
Output: Pristine Clean DataFrame (clean_df)
| customer_name_client | account_num | order_date_utc | region_territory | gross_revenue | unit_cost | profit_margin_pct | active_subscription |
|---|---|---|---|---|---|---|---|
| Acme Corp | "00124" |
2024-03-25 |
APAC | 1781.08 |
1000.54 |
0.333 |
False |
| Wayne Enterprises | "00235" |
2024-03-25 |
USA | -12865.27 |
8045.42 |
-0.098 |
True |
| Massive Dynamic | "00280" |
2024-12-14 |
Europe | 6802.61 |
4479.36 |
0.220 |
True |
| Soylent Corp | "00945" |
2024-09-05 |
India | 1397.28 |
905.45 |
0.173 |
False |
| Hooli Inc | "00234" |
2024-05-09 |
North America | 59426.74 |
41967.12 |
0.518 |
True |
🏗️ Architecture & Transformation Pipeline
flowchart TD
A["Raw Spreadsheet Export (CSV / Excel)"] --> B["1. Header Normalizer"]
B -->|"Snake_case, strip whitespace, remove special chars"| C["2. Structural Sanitizer"]
C -->|"Drop 100% empty rows/cols, extract Grand Total footer"| D["3. Two-Tier Hierarchical Date Engine"]
subgraph DateEngine["Two-Tier Date Disambiguation"]
D --> D1{"Tier 1: High Column Consensus (>80%)?"}
D1 -->|Yes| D2["Parse entire column with inferred dayfirst"]
D1 -->|No / Ambiguous| D3["Tier 2: Row Contextual Inspection (Partner columns: Currency / Region)"]
end
D2 --> E["4. Multi-Currency Normalizer"]
D3 --> E
subgraph CurrencyEngine["Multi-Currency Engine"]
E --> E1{"Multiple Currencies Detected?"}
E1 -->|Yes| E2["Interactive Prompt or target_currency param"]
E2 --> E3["Apply FX Matrix (USD, EUR, GBP, INR, etc.)"]
E1 -->|No| E4["Strip single currency symbol & cast to Float64"]
E3 --> E5["Log Audit Trail in df.attrs['currency_conversions']"]
end
E4 --> F["5. Type Cast & Accounting Engine"]
E5 --> F
F -->|"Accounting (val) -> -val, % -> float, preserve ID leading zeros"| G["Pristine Analysis-Ready DataFrame"]
G --> H1["Pythonic Business Math (xlookup, pareto, growth, run_rate)"]
G --> H2["Boardroom Display Formatter (format_for_display)"]
🌟 Flagship 1: Two-Tier Hierarchical Date Engine
Standard tools like pd.to_datetime(df['date']) fail when international datasets combine DD/MM/YYYY (India, UK, Europe) and MM/DD/YYYY (USA).
BizPack introduces a Two-Tier Hierarchical Resolution Engine:
flowchart TD
Start["Date Column Received"] --> T1Check{"Tier 1: Check Unambiguous Values (Days > 12)"}
T1Check -->|Strong Consensus >= 80%| T1Apply["Apply Column-Wide Format (dayfirst=True/False)"]
T1Check -->|Ambiguous or Contradictory| T2Context["Tier 2: Fall back to Row-Level Contextual Inspection"]
T2Context --> InspectRow["Inspect Row's Partner Columns"]
InspectRow --> R1{"Partner has ₹, INR, £, EUR, or India/Europe?"}
R1 -->|Yes| ParseDMY["Parse Row as DD/MM/YYYY"]
R1 -->|No| R2{"Partner has $, USD, or USA/North America?"}
R2 -->|Yes| ParseMDY["Parse Row as MM/DD/YYYY"]
R2 -->|No| FallbackIso["Standard ISO Parsing"]
T1Apply --> Finish["Zero NaT Rows • 100% Temporal Accuracy"]
ParseDMY --> Finish
ParseMDY --> Finish
FallbackIso --> Finish
Example:
import bizpack as bp
import pandas as pd
df = pd.DataFrame({
"date": ["05/09/2024", "05/09/2024"],
"region": ["India", "USA"],
"amount": ["₹ 1,000", "$ 100"]
})
clean = bp.clean(df)
print(clean["date"])
# 0 2024-09-05 <- Inferred as September 5th via Indian partner context
# 1 2024-05-09 <- Inferred as May 9th via US partner context
🌍 Flagship 2: Multi-Currency Normalization & Audit Trail
Corporate financial data is often globalized. If an analyst naively strips currency symbols, math across different currencies produces disastrous errors.
BizPack standardizes currencies automatically with built-in or custom exchange rates:
import bizpack as bp
# Convert everything to US Dollars (USD)
df_usd = bp.clean(df, target_currency="USD")
# Or standardize to Indian Rupees (INR)
df_inr = bp.clean(df, target_currency="INR")
# Inspect the full audit trail
print(df_usd.attrs["currency_conversions"])
# Output:
# {'gross_revenue': {
# 'target_currency': 'USD',
# 'counts': {'INR': 42, 'USD': 30, 'EUR': 18, 'GBP': 10},
# 'rates_applied': {'USD': 1.0, 'EUR': 1.087, 'GBP': 1.282, 'INR': 0.0119}
# }}
Custom Exchange Rates:
# Pass exact corporate spot rates
df_clean = bp.clean(
df,
target_currency="USD",
rates={"EUR": 1.10, "GBP": 1.30, "INR": 0.012}
)
🧹 Flagship 3: Enterprise Spreadsheet Hygiene
BizPack automates the 10 most common spreadsheet cleanup routines:
- Snake-Case Headers:
" Customer Name / Client "$\rightarrow$"customer_name_client". - Accounting Negatives:
"(12,865.27)"or"$ (12,865.27)"$\rightarrow$-12865.27. - European Numbers:
"€ 41.392,35"(period for thousands, comma for decimal) $\rightarrow$41392.35. - Indian Number Format:
"₹ 1,49,670.67"(lakh/crore comma grouping) $\rightarrow$149670.67. - Percentages:
"33.3%"or"(9.8%)"$\rightarrow$0.333and-0.098. - Booleans:
"Y","Yes","true"$\rightarrow$True;"N","No","false"$\rightarrow$False. - Excel Error Strings:
"#REF!","#N/A","-","null"$\rightarrow$np.nan. - Leading Zero Preservation: IDs (
"00124","00042") remain string objects and are not truncated to integers. - Empty Structure Stripping: Completely blank rows and columns are purged.
- Footer Extraction:
"Grand Total"rows are removed from calculation flow and preserved indf.attrs['totals'].
📈 Flagship 4: Pythonic Business Math
1. bp.xlookup(): The Native Excel Lookup Replacement
No more 4-line df.merge() with temporary join keys:
# Exact match lookup with fallback default
df["tier"] = bp.xlookup(
lookup_val=df["account_id"],
lookup_series=catalog["sku"],
return_series=catalog["tier_name"],
default="Standard"
)
2. bp.pareto(): Automated 80/20 Rule Analysis
Identify key accounts and revenue drivers instantly:
pareto_df = bp.pareto(clean_df, dim_col="customer_name", metric_col="revenue", top_pct=0.80)
# Executive narrative generated automatically:
print(pareto_df.attrs["summary"])
# "Top 14 out of 100 customer_name items (14.0%) account for 80% of total revenue."
3. bp.growth(): Period-over-Period Pacing (MoM / YoY)
Compute delta amounts and percentage growth without manual .shift() gymnastics:
growth_df = bp.growth(clean_df, date_col="order_date", metric_col="revenue", freq="M")
| period | revenue | rev_prior | rev_delta | rev_growth_pct |
|---|---|---|---|---|
| 2024-01 | 145,200.00 |
NaN |
NaN |
NaN |
| 2024-02 | 168,400.00 |
145,200.00 |
+23,200.00 |
+15.98% |
| 2024-03 | 192,100.00 |
168,400.00 |
+23,700.00 |
+14.07% |
4. bp.run_rate(): Target Pacing & Projected Close
Track month-to-date or quarter-to-date trajectory against quotas:
pacing = bp.run_rate(clean_df, date_col="order_date", metric_col="revenue", target=500_000, period="M")
👔 Flagship 5: Boardroom Presentation Formatter
When calculating, analysts need clean float64 numbers. When presenting to stakeholders, executives need beautiful symbols and formatting.
BizPack restores boardroom-ready formatting in 1 line:
# Do your analytical transformations
clean_df["gross_profit"] = clean_df["gross_revenue"] - clean_df["unit_cost"]
# Format back to executive presentation strings
display_df = bp.format_for_display(clean_df)
print(display_df.head())
| customer_name | gross_revenue | unit_cost | gross_profit | profit_margin |
|---|---|---|---|---|
| Acme Corp | $ 1,781.08 |
$ 1,000.54 |
$ 780.54 |
33.3% |
| Wayne Enterprises | ($ 12,865.27) |
$ 8,045.42 |
($ 20,910.69) |
(9.8%) |
🔌 Native Pandas .biz Accessor
BizPack seamlessly attaches to any existing Pandas DataFrame:
import pandas as pd
import bizpack # registers the .biz accessor
df = pd.read_csv("dirty_data.csv")
# Fluent method chaining
clean_df = (
df.biz.clean(target_currency="USD")
.biz.pareto(dim_col="customer_name", metric_col="gross_revenue")
)
⚡ Performance & Benchmarks
BizPack is built on vectorized Pandas and NumPy operations, designed to process thousands of messy enterprise rows in milliseconds with zero heavy dependencies:
| Benchmark Task | Dataset Size | BizPack Latency | Memory Overhead |
|---|---|---|---|
| Full Clean (Headers + Types + Currency + Dates) | 1,000 rows | ~24 ms | < 1 MB |
| Full Clean (Mixed Currency + Two-Tier Dates) | 10,000 rows | ~2.8 s | ~4 MB |
bp.xlookup() Vectorized Match |
100,000 rows | ~12 ms | Negligible |
bp.pareto() 80/20 Cumulative Distribution |
50,000 rows | ~8 ms | Negligible |
bp.growth() MoM Aggregation |
50,000 rows | ~15 ms | Negligible |
Benchmarked on standard x86_64 hardware with Python 3.10.
📖 API Reference
Core Cleaning & I/O
| Function | Parameters | Description |
|---|---|---|
bp.audit(df, ...) |
df, print_report=True |
Non-destructive data health scorecard checking multi-currency conflation, date ambiguity, footer leakage, and leading zero risks. |
bp.clean(df, ...) |
df, target_currency, rates, id_cols, preserve_cols, interactive |
Master cleaning function: standardizes headers, empty elements, footers, currencies, accounting formats, and dates. |
bp.clean_file(in_path, out_path, ...) |
input_path, output_path=None, **clean_kwargs |
Clean a CSV directly from disk and save the clean result. |
bp.read_csv(filepath, ...) |
filepath, clean=True, **clean_kwargs |
Read a CSV with automatic BizPack cleaning enabled by default. |
bp.clean_headers(df) |
df |
Strip whitespace, snake_case names, and remove illegal characters from column titles. |
bp.drop_empty(df) |
df, how="all" |
Drop rows and columns that are completely empty. |
bp.strip_totals(df) |
df, keywords=["grand total", "total"] |
Strip footer total rows and store them in df.attrs['totals']. |
Currency & Dates
| Function | Parameters | Description |
|---|---|---|
bp.standardize_currencies(df, ...) |
df, target_currency, rates, interactive |
Detect mixed currencies in columns, prompt if needed, and convert values using FX rates. |
bp.detect_currency(series) |
series |
Identify currency symbols present across a series ($, €, £, ₹, Rs., etc.). |
bp.infer_date_format(series, ...) |
series, partner_series=None |
Two-tier resolution of DD/MM/YYYY vs MM/DD/YYYY utilizing column consensus and row context. |
Business Math & Presentation
| Function | Parameters | Description |
|---|---|---|
bp.xlookup(lookup_val, ...) |
lookup_val, lookup_series, return_series, default=np.nan |
Fast vectorized Excel-style lookup. |
bp.pareto(df, dim_col, metric_col, ...) |
df, dim_col, metric_col, top_pct=0.80 |
Pareto 80/20 analysis with cumulative shares and automated summary text. |
bp.growth(df, date_col, metric_col, ...) |
df, date_col, metric_col, freq="M" |
Period-over-period delta and growth percentage computation. |
bp.run_rate(df, date_col, metric_col, ...) |
df, date_col, metric_col, target, period="M" |
Quota pacing and projected period finish calculation. |
bp.format_for_display(df, ...) |
df, cols=None |
Restores formatted strings ($, ₹, €, %, ()) for executive presentations. |
🧪 Testing Suite
BizPack maintains a comprehensive test suite covering edge cases in accounting syntax, international currency conventions, ambiguous date permutations, and formula accuracy:
git clone https://github.com/sudheer-050/bizpack.git
cd bizpack
python -m pytest tests/ -v
tests/test_accessor.py::test_accessor_clean_and_format PASSED [ 2%]
tests/test_cleaner.py::test_clean_international_currencies PASSED [ 21%]
tests/test_currency.py::test_interactive_user_prompt_choice PASSED [ 51%]
tests/test_dates.py::test_mixed_dates_in_same_column_with_partner_context PASSED [ 70%]
tests/test_formulas.py::test_pareto PASSED [ 97%]
============================= 37 passed in 0.67s ==============================
📦 Installation & Requirements
pip install bizpack
- Python:
>= 3.9 - Dependencies:
pandas >= 1.5.0,numpy >= 1.20.0 - Zero Heavy Dependencies: No C++ compilers, heavy LLM toolchains, or bloated network runtimes.
🗺️ Roadmap & Community
- Two-Tier Hierarchical Date Engine
- Multi-Currency Normalization & Interactive Prompt
- Leading Zero & Account ID Preservation
- Excel Business Math Formulas (
xlookup,pareto,growth,run_rate) - Multi-table sheet splitter (for multi-report Excel tabs)
- Financial waterfall variance decomposition
- Excel styled export (
.xlsxwith native number formats and header styling)
Contributions, feature requests, and bug reports are welcome on GitHub Issues!
📄 License
Distributed under the MIT License. See LICENSE for more details.
Metadata
Release files for bizpack 0.1.3
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 | Actions |
|---|---|---|---|---|
| bizpack-0.1.3.tar.gz | 61.5 kB | Without provenance | Details for bizpack-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bizpack-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for bizpack-0.1.3-py3-none-any.whl |
Total release size: 107.1 kB
Release files / bizpack-0.1.3.tar.gz
| Download URL | bizpack-0.1.3.tar.gz |
|---|---|
| Size | 61.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ad0fb406b7e129ee17da7ff8f77995ed7cb38764e21eeea0080474d627bd0cb2
|
|
BLAKE2b-256 checksum How to use checksums |
75fe627dbb95cbdd4d5124ad61502b459bee5d9dcad9f48c60a85885a76fb40f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.0
|
Release files / bizpack-0.1.3-py3-none-any.whl
| Download URL | bizpack-0.1.3-py3-none-any.whl |
|---|---|
| Size | 45.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
258033a81862ea358d5f2af083d760e3965cecadd41a5f66ce1269add18e6a9c
|
|
BLAKE2b-256 checksum How to use checksums |
e1b74e40b769ca7c21a15ebf8788569b7c490a846f0c4aa1c6f65da5232f06da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.0
|
Security for bizpack 0.1.3
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.