๐๐ฒ๐ญ๐ก๐จ๐ง ๐๐จ๐ซ๐ค๐๐ฅ๐จ๐ฐ๐ฌ. ๐๐ง๐ฌ๐ข๐๐ ๐๐ฑ๐๐๐ฅ. ๐๐ข๐ญ๐ก ๐ฑ๐ฅ๐ฐ๐ข๐ง๐ ๐ฌ ๐๐ข๐ญ๐ (๐๐ซ๐๐) - ๐๐จ๐ฐ๐๐ซ๐๐ฎ๐ฅ.
- Amar Harolikar
- Mar 23
- 2 min read
Updated: 6 days ago
Data transforms, automations, custom functions, API Calls, stats, ML
Another superb addition to analyst and data scientistโs toolkit - xlwings Lite. From Felix Zumstein, creator of xlwings - the powerful and widely used Python package for Excel automation. Iโve used xlwings off and on over the years - solid package.
ย
๐ฑ๐ฅ๐ฐ๐ข๐ง๐ ๐ฌ ๐๐ข๐ญ๐ was released just yesterday. Ran a few quick codes- what I typically run in Jupyter / Colab - itโs brilliant.
ย
Setup was simple - just add the xlwings Add-in and you're set. Tried an XGBoost model on cleaned-up mock data - decile table, scoring, ROC/Gains chart ...just to see how it handles...Also some quick analysis, feature engineering, basic stats - smooth and easy.
ย
๐๐จ๐ฌ๐ญ ๐ข๐ฆ๐ฉ๐ซ๐๐ฌ๐ฌ๐ข๐ฏ๐
โข Manipulate Excel objects - sheets, columns, rows
โข Transfer data between Excel and Python
โข Neat mini editor
โข Console for print() output and debugging
โข Requirements.txt for package installs
โข Custom Functions
โข Web API calls (huge)+ DB access via same layer (yet to try out)
ย
๐๐ฎ๐ข๐๐ค ๐๐ข๐ฉ๐ฌ (based on initial hands-on)
โข Format Excel ranges as Tables - good practice anyway.
โข Use any LLM or AI coder - they already โknowโ the xlwings object model.
โข Write everything as standard Python functions (def).
โข Use @func to create Excel-callable functions (=formula), and @script for direct code runs.
โข Great docs and API reference if you get stuck.
ย
๐๐ฌ ๐ข๐ญ ๐ ๐ซ๐๐ฉ๐ฅ๐๐๐๐ฆ๐๐ง๐ญ ๐๐จ๐ซ ๐๐ฎ๐ฉ๐ฒ๐ญ๐๐ซ/๐๐จ๐ฅ๐๐?
Nopes..many analytics and ML workflows are iterative and need data warehouse connects. A strong addition to the toolkit, not a replacement.
ย
๐๐ซ๐๐๐ญ ๐๐ข๐ญ ๐๐จ๐ซ
โธ Excel automation - Iโll take Python over VBA any day (and the combo - even more powerful)
โธ Complex data transformations - no need to switch between Jupyter and Excel.
โธ In-Excel EDA, validations, diagnostics
ย
๐๐ข๐ง๐ค๐ฌย
Post & walkthrough video by Felix Zumstein (creator of xlwings): https://lnkd.in/geKzDK45
GitHub repo with demo files and scripts: https://lnkd.in/gZVaZzvD
ย
ย
ย
----------------*
Explore 15+ open-source AI analytics apps at rex.tigzig.com with natural language to SQL, python charts, stats, database connectivity and more.
ย
Free access, source codes and build guides
๐นAI Powered Automation - ๐๐จ๐ง๐ง๐๐๐ญ ๐๐ก๐๐ญ๐๐๐ ๐ฐ๐ข๐ญ๐ก ๐ง๐๐ง
๐นAI ๐๐ฎ๐ญ๐จ๐ฆ๐๐ญ๐ข๐จ๐ง Micro App: https://lnkd.in/gxVbCdpv
๐นAI Co-Analyst ๐๐๐ฏ๐๐ง๐๐๐ ๐๐ง๐๐ฅ๐ฒ๐ฌ๐ข๐ฌ App: https://lnkd.in/g8xPQvb8
๐น๐๐๐๐ฅ๐ญ๐ข๐ฆ๐ ๐๐จ๐ข๐๐ AI connected to database: https://lnkd.in/g6cT8ZSMย https://lnkd.in/gCT9J_K4