Lexim011 commited on
Commit
9dac975
·
verified ·
1 Parent(s): 0f14c21

Upload load_dataset.py

Browse files
Files changed (1) hide show
  1. 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])