Create medical.py
Browse files- medical.py +5 -0
medical.py
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from datasets import load_dataset, Dataset
|
2 |
+
csv_filename = "Medical_Data/oral_maxillofacial_surgery_with_text.csv"
|
3 |
+
df = pd.read_csv(csv_filename)
|
4 |
+
dataset = Dataset.from_pandas(df)
|
5 |
+
load_dataset(dataset)
|