adrianf12 commited on
Commit
213bc36
·
verified ·
1 Parent(s): 8a94769

Add CSV dataset README with usage instructions

Browse files
Files changed (1) hide show
  1. README.md +50 -0
README.md ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # HealthCareMagic-1k-csv
2
+
3
+ This dataset is the CSV version of [adrianf12/HealthCareMagic-1k-input-only](https://huggingface.co/datasets/adrianf12/HealthCareMagic-1k-input-only).
4
+
5
+ ## Dataset Information:
6
+ - **Format**: CSV (Comma Separated Values)
7
+ - **Rows**: 1,000
8
+ - **Columns**: input, output
9
+ - **Size**: 1045.61 KB
10
+ - **Created**: 2025-07-31 17:31:46
11
+
12
+ ## Dataset Structure:
13
+ - **input**: Patient medical questions/descriptions
14
+ - **output**: Medical professional responses/advice
15
+
16
+ ## Usage:
17
+
18
+ ### Load with pandas:
19
+ ```python
20
+ import pandas as pd
21
+ df = pd.read_csv("hf://datasets/adrianf12/HealthCareMagic-1k-csv/healthcare_magic_1k.csv")
22
+ print(df.head())
23
+ ```
24
+
25
+ ### Load with Hugging Face datasets:
26
+ ```python
27
+ from datasets import load_dataset
28
+ dataset = load_dataset("adrianf12/HealthCareMagic-1k-csv", data_files="healthcare_magic_1k.csv")
29
+ print(dataset['train'][0])
30
+ ```
31
+
32
+ ### Download directly:
33
+ ```bash
34
+ wget https://huggingface.co/datasets/adrianf12/HealthCareMagic-1k-csv/resolve/main/healthcare_magic_1k.csv
35
+ ```
36
+
37
+ ## Original Dataset:
38
+ This is derived from [wangrongsheng/HealthCareMagic-100k-en](https://huggingface.co/datasets/wangrongsheng/HealthCareMagic-100k-en).
39
+
40
+ ## Modifications from Original:
41
+ 1. Limited to first 1,000 entries
42
+ 2. Removed 'instruction' column
43
+ 3. Kept only 'input' and 'output' columns
44
+ 4. Converted to CSV format
45
+
46
+ ## License:
47
+ Please refer to the original dataset's license terms.
48
+
49
+ ## File Contents:
50
+ - `healthcare_magic_1k.csv`: The main dataset file in CSV format