Skip to content

Commit 2ad2e7d

Browse files
committed
completed qz3 and update to hw3 assignment
1 parent 09bd578 commit 2ad2e7d

File tree

7 files changed

+1436
-2
lines changed

7 files changed

+1436
-2
lines changed

README.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# 🐍 Python Programs Portfolio
2+
3+
Welcome to the **Python Programs Portfolio** repository!
4+
This collection showcases multiple Python-based projects for data analysis, visualization, and web applications, organized in dedicated subfolders.
5+
6+
---
7+
8+
## 📦 Projects Included
9+
10+
### 📈 Stock Data Application
11+
12+
- **Description:**
13+
An interactive Streamlit web app for exploring historical stock prices and company information.
14+
- **Location:** `stock-data-app/`
15+
- **Live Demo:** [View on Streamlit Cloud](https://python-programs-v9puvb4eqw5cfalfr8qgdi.streamlit.app/)
16+
17+
### 🍏 Stock Data with yfinance
18+
19+
- **Description:**
20+
A Python script that retrieves, analyzes, and visualizes 5 years of Apple Inc. stock data using yfinance and Plotly.
21+
- **Location:** `stock-data-with-yfinance/`
22+
23+
---
24+
25+
## 🚀 Getting Started
26+
27+
1. **Clone the repository**
28+
```bash
29+
git clone https://github.com/your-username/Python-Programs.git
30+
```
31+
2. **Explore each project’s folder** for its own README and setup instructions.
32+
33+
---
34+
35+
## 📂 Folder Structure
36+
37+
```
38+
Python-Programs/
39+
40+
├── stock-data-app/ # Streamlit web app
41+
├── stock-data-with-yfinance/ # Data analysis & visualization script
42+
└── README.md # This documentation
43+
```
44+
45+
---
46+
47+
## 🙏 Acknowledgements
48+
49+
Some projects in this repository were completed as assignments for West Texas A&M University, CIDM 4310/5310, under the guidance of Dr. Cheng (Carl) Zhang.
50+
Special thanks to the open-source community!
51+
52+
---
53+
54+
## 📝 License
55+
56+
This repository is for educational and demonstration purposes

stock-data-app/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ This application was adapted and deployed by **Jesus Torres** as an assignment f
102102

103103
- The original codebase was provided as part of the course material.
104104

105-
Also Special thanks to the open-source community!
105+
Also Special thanks to the open-source community and the creators of yfinance and Plotly!
106106

107107
---
108108

stock-data-app/main.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@
3333
today = date.today()
3434

3535

36-
def stream_summary(summary):
36+
def stream_summary(summary: str):
37+
"""
38+
Function to stream the business summary of the stock.
39+
This function takes a summary string and yields each word with a slight delay
40+
"""
3741
for word in summary.split(" "):
3842
yield word + " "
3943
time.sleep(0.02) # Simulate a delay for streaming effect

stock-data-with-yfinance/README.md

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# 🍏 Stock Data with yfinance
2+
3+
Welcome to the **Stock Data with yfinance** project!
4+
This Python script retrieves, analyzes, and visualizes historical stock data for Apple Inc. using the powerful [yfinance](https://github.com/ranaroussi/yfinance) and [Plotly Express](https://plotly.com/python/plotly-express/) libraries.
5+
6+
---
7+
8+
## 🚀 Features
9+
10+
- **Easy Data Retrieval**: Fetches 5 years of Apple (AAPL) stock data from Yahoo Finance.
11+
- **Company Insights**: Prints detailed company information, including name, sector, and industry.
12+
- **Interactive Visualization**: Plots Open, High, Low, and Close prices using Plotly Express for beautiful, interactive charts.
13+
- **Data Export**: Saves the historical stock data to a CSV file for further analysis.
14+
15+
---
16+
17+
## 🛠️ How to Run
18+
19+
1. **Clone the repository**
20+
21+
```bash
22+
git clone https://github.com/your-username/Python-Programs.git
23+
```
24+
25+
2. **Navigate to the project directory**
26+
Open your terminal and change to the correct folder:
27+
28+
```bash
29+
cd Python-Programs/stock-data-with-yfinance
30+
```
31+
32+
3. **Install dependencies**
33+
Make sure you have Python 3.8+ installed.
34+
35+
```bash
36+
pip install yfinance plotly
37+
```
38+
39+
4. **Run the script in your terminal**
40+
41+
```bash
42+
python main.py
43+
```
44+
45+
5. **View the chart**
46+
The interactive chart will open in your default web browser.
47+
48+
---
49+
50+
## 📂 Folder Structure
51+
52+
```
53+
stock-data-with-yfinance/
54+
55+
├── main.py # Main Python script
56+
├── apple_stock_5y_history.csv # Output CSV with 5 years of Apple stock data
57+
└── README.md # This documentation
58+
```
59+
60+
---
61+
62+
## 📚 References
63+
64+
- [yfinance Documentation](https://ranaroussi.github.io/yfinance/index.html)
65+
- [Plotly Express Documentation](https://plotly.com/python/plotly-express/)
66+
67+
---
68+
69+
## 🙏 Acknowledgements
70+
71+
This program was adapted and modified by Jesus Torres as an assignment for the CIDM 4310/5310 Business Intelligence and Decision Support Systems course at West Texas A&M University, under the guidance of Dr. Cheng (Carl) Zhang.
72+
73+
- The original codebase was provided as part of the course material.
74+
75+
Also special thanks to the open-source community and the authors of yfinance and Plotly!
76+
77+
---
78+
79+
## 📝 License
80+
81+
This project is for educational and demonstration purposes

0 commit comments

Comments
 (0)