Business Analytics lab experiments — import, run, and save ready-to-use Python scripts.
Project description
tensor2
Business Analytics lab experiments — import, browse, and generate ready-to-run Python scripts.
Installation
pip install tensor2
# Install ALL optional experiment dependencies at once:
pip install "tensor2[all]"
Quick Start
from tensor2 import index
# ① Interactive menu — pick an experiment number, get a saved .py file
index.main()
# ② Just print the list
index.list_experiments()
# ③ Get source code as a string
code = index.get(3)
print(code)
# ④ Save directly to a file
index.get(5, save_to='data_quality.py')
Available Experiments
| # | Title | Key Libraries |
|---|---|---|
| 1 | Data Importing and Exporting using Pandas | pandas, openpyxl |
| 2 | Data Cleaning and Preprocessing | pandas, numpy, matplotlib, seaborn |
| 3 | Data Integration and Reshaping (Data Wrangling) | pandas, numpy |
| 4 | Dealing with Time Series Data | pandas, numpy, matplotlib |
| 5 | Data Quality Assurance (DQA) | pandas, numpy, matplotlib, seaborn |
| 6 | Exploratory Data Analysis and Visualization | pandas, numpy, matplotlib, seaborn |
| 7 | Big Data Analysis — Apache Hive & Neo4j* | (external tools) |
| 8 | Forecasting using ARIMA Model | statsmodels, scikit-learn |
| 9 | Sentiment Analysis of Social Media Data | textblob, vaderSentiment, nltk |
| 10 | Regression Analysis on Stock Data | scikit-learn, yfinance |
* Experiment 7 prints the Hive/Cypher commands you need to run in their respective shells.
Dataset Replacement
Every experiment uses a synthetic dataset by default so you can run it immediately. Look for the comment block at the top of each experiment:
# Replace with your own file:
# df = pd.read_csv('your_file.csv')
Simply swap in your real data source and the rest of the script runs unchanged.
How index.main() Works
- Prints a numbered list of all experiments.
- You type the experiment number.
- You choose a file name (or press Enter for the default).
- A ready-to-run
.pyfile is saved in your current directory.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tensor2-1.0.2.tar.gz.
File metadata
- Download URL: tensor2-1.0.2.tar.gz
- Upload date:
- Size: 17.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab67655a3ec9c3375844eba69cc28e7414be22acabe7625c33d2f806bd5a3017
|
|
| MD5 |
10447720fb25cac52db7487d062dde01
|
|
| BLAKE2b-256 |
a32f20bbc3e7fcfb59d3bbb324d2a259094813616ffa2f7b11edec2d6c408dd3
|
File details
Details for the file tensor2-1.0.2-py3-none-any.whl.
File metadata
- Download URL: tensor2-1.0.2-py3-none-any.whl
- Upload date:
- Size: 21.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
acfd48ececcfc8c23f3bc572a8df205f45fc9e46f799966f7414a1190a197de4
|
|
| MD5 |
25e38a65dc7a0bd75fbf88dff2ee45a9
|
|
| BLAKE2b-256 |
a9b35dda74fe81430d3d450c4131a0c2d3be93bae845ad7bc765a79b19a4fb08
|