https://github.com/russelwebber/xlslim-code-samples
Working examples showing how to use Python from Excel using xlSlim
https://github.com/russelwebber/xlslim-code-samples
excel kafka numpy pandas python streaming vba
Last synced: 5 months ago
JSON representation
Working examples showing how to use Python from Excel using xlSlim
- Host: GitHub
- URL: https://github.com/russelwebber/xlslim-code-samples
- Owner: RusselWebber
- Created: 2022-04-10T12:05:32.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-06-27T16:51:23.000Z (over 1 year ago)
- Last Synced: 2024-06-27T20:18:43.802Z (over 1 year ago)
- Topics: excel, kafka, numpy, pandas, python, streaming, vba
- Language: Python
- Homepage: https://xlslim.com
- Size: 5.32 MB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# xlslim-code-samples
This repo contains working examples showing how the xlSlim Excel add-in enables you to use Python in Excel.
See https://russelwebber.github.io/xlslim-docs/html/index.html and https://www.xlslim.com
Specific examples are:
## Basics
- Interactive mode where Excel mimics a Jupyter notebook
- Calling a Python function from Excel
- Using type hints
- Passing a dictionary
- Using optional arguments
- Reading a csv into Excel using Python
- Fetching JSON data from the web and showing this in Excel
- Manipulating data using SQLite and showing the results in Excel
- Calling VBA and other macro functions from Python
## Imports
- Controlling which Python functions are imported into Excel
- Adding additional paths to the Python module search path
- Dynamic imports, creating modules and functions from text in Excel
## Remote Imports
- Importing modules from GitHub and BitBucket
- Importing a module from a Gist
- Importing code from a remote ZIP archive
## NLP
- Performaing nlp with Python and Excel
## numpy
- Passing numpy arrays from Excel to Python functions
- Cacheing numpy arrays returned from Python
## pandas
- Using interactive mode to read data from csv, pivot in pandas, and export as PDF
- Passing pandas series and dataframes from Excel to Python functions
- Cacheing pandas series and dataframes returned from Python
- Calling a Python Monte Carlo option pricer from Excel
- Reading prices from Yahoo Finance into Excel
- Using Python sklearn to perform Principal Components Analysis of Index Prices
## Streaming
- Streaming data from Bloomberg into Excel using Python
- Streaming data from IEX into Excel using Python
- Streaming data from Kafka into Excel using Python
- Streaming numpy arrays from Kafa into Excel using Python
## VBA
- Using Python as an Excel replacement.
- Loading csv data into Excel using PowerQuery.
- Using Python and pywin32 COM to create a pivot table.
- Adding items to the context and ribbon menus
## Finance
- Using xlSlim to run scenario analysis for equity index options. This example shows how data classes and dictionaries can be used to structure code neatly.
## DuckDB
- Using DuckDB to query csv, json and Parquet files.
## Optimization
- Using scipy.optimize.linprog to solve a production mix problem.