| # HealthCareMagic-1k-csv | |
| This dataset is the CSV version of [adrianf12/HealthCareMagic-1k-input-only](https://huggingface.co/datasets/adrianf12/HealthCareMagic-1k-input-only). | |
| ## Dataset Information: | |
| - **Format**: CSV (Comma Separated Values) | |
| - **Rows**: 1,000 | |
| - **Columns**: input, output | |
| - **Size**: 1045.61 KB | |
| - **Created**: 2025-07-31 17:31:46 | |
| ## Dataset Structure: | |
| - **input**: Patient medical questions/descriptions | |
| - **output**: Medical professional responses/advice | |
| ## Usage: | |
| ### Load with pandas: | |
| ```python | |
| import pandas as pd | |
| df = pd.read_csv("hf://datasets/adrianf12/HealthCareMagic-1k-csv/healthcare_magic_1k.csv") | |
| print(df.head()) | |
| ``` | |
| ### Load with Hugging Face datasets: | |
| ```python | |
| from datasets import load_dataset | |
| dataset = load_dataset("adrianf12/HealthCareMagic-1k-csv", data_files="healthcare_magic_1k.csv") | |
| print(dataset['train'][0]) | |
| ``` | |
| ### Download directly: | |
| ```bash | |
| wget https://huggingface.co/datasets/adrianf12/HealthCareMagic-1k-csv/resolve/main/healthcare_magic_1k.csv | |
| ``` | |
| ## Original Dataset: | |
| This is derived from [wangrongsheng/HealthCareMagic-100k-en](https://huggingface.co/datasets/wangrongsheng/HealthCareMagic-100k-en). | |
| ## Modifications from Original: | |
| 1. Limited to first 1,000 entries | |
| 2. Removed 'instruction' column | |
| 3. Kept only 'input' and 'output' columns | |
| 4. Converted to CSV format | |
| ## License: | |
| Please refer to the original dataset's license terms. | |
| ## File Contents: | |
| - `healthcare_magic_1k.csv`: The main dataset file in CSV format | |