Upload load_dataset.py
Browse files- load_dataset.py +7 -0
load_dataset.py
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from datasets import load_dataset
|
| 2 |
+
|
| 3 |
+
# Load your local CSV dataset
|
| 4 |
+
dataset = load_dataset('csv', data_files='/Users/airalex/Documents/LLM/CCI_Details_Structured_Full.csv')
|
| 5 |
+
|
| 6 |
+
# Print out the first example to understand the structure
|
| 7 |
+
print(dataset['train'][0])
|