📊 Dataset · CSV
stocks.csv dataset
Download stocks.csv free (2,306 rows × 6 columns, 148.1 KB). Preview the rows and columns, load it in pandas in one line and practise with 6 Python lessons.
- Size148.1 KB
- Rows2,306
- Columns6
- Used in6 lessons
Preview (first rows)
| MSFT | IBM | SBUX | AAPL | GSPC | Date |
|---|---|---|---|---|---|
| 23.950705 | 80.517962 | 16.149666 | 11.086612 | 1416.599976 | 2007-01-03 |
| 23.910599 | 81.378851 | 16.167992 | 11.332687 | 1418.339966 | 2007-01-04 |
| 23.774242 | 80.642129 | 16.099269 | 11.251984 | 1409.709961 | 2007-01-05 |
| 24.006852 | 81.867244 | 16.03971 | 11.30755 | 1412.839966 | 2007-01-08 |
| 24.030914 | 82.835742 | 15.970989 | 12.24687 | 1412.109985 | 2007-01-09 |
| 23.790284 | 81.858964 | 15.920592 | 12.832951 | 1414.849976 | 2007-01-10 |
| 24.624469 | 81.660299 | 16.406228 | 12.674194 | 1423.819946 | 2007-01-11 |
| 25.033538 | 82.231462 | 16.447462 | 12.518082 | 1430.72998 | 2007-01-12 |
Columns
| Column | Type | Missing | Example |
|---|---|---|---|
MSFT | decimal | 0 | 23.950705 |
IBM | decimal | 0 | 80.517962 |
SBUX | decimal | 0 | 16.149666 |
AAPL | decimal | 0 | 11.086612 |
GSPC | decimal | 0 | 1416.599976 |
Date | text | 0 | 2007-01-03 |
Load it in Python
import pandas as pd
df = pd.read_csv("stocks.csv")
df.head()





