Update README.md
Browse files12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686912345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364---
language:
- en
license: cc-by-sa-4.0
tags:
- python
- stackoverflow
- question-answering
- instruct
size_categories:
- 1K<n<10K
---
# StackOverflow Python QA Dataset
[](https://github.com/meeAtif)
[](https://creativecommons.org/licenses/by-sa/4.0/)
## Description
This dataset contains high-quality Python questions and answers scraped from StackOverflow. It is designed for instruct-tuning Large Language Models (LLMs) or for question-answering tasks.
- **Source**: StackOverflow
- **Selection Criteria**:
- Tag: `python`
- Score: > 10
- Must have an **accepted answer**
- **Content**: Pairs of instructions (Question) and outputs (Accepted Answer).
## Dataset Structure
The dataset consists of the following fields:
- `question_id`: The unique identifier for the question on StackOverflow.
- `score`: The vote score of the question.
- `tags`: A list of tags associated with the question.
- `creation_date`: The timestamp of when the question was asked.
- `instruction`: The full question title and body, cleaned of HTML.
- `output`: The full body of the accepted answer, cleaned of HTML.
## Sample Entry
```json
{
"question_id": 12345,
"score": 50,
"tags": ["python", "list-comprehension"],
"instruction": "How do I create a list... \n\n I have a loop that...",
"output": "You can use a list comprehension:\n\n [x for x in iterable]"
}
```
## Usage
```python
from datasets import load_dataset
dataset = load_dataset("meeAtif/stackoverflow-python-qa")
print(dataset['train'][0])
```
## Author
[](https://github.com/meeAtif)
[](https://linkedin.com/in/meAtif)
[](mailto:iatif@proton.me)
---
*Created by [Atif](https://github.com/meeAtif)*---language:- enlicense: cc-by-sa-4.0tags:- python- stackoverflow- question-answering- instructsize_categories:- 1K<n<10K---
# StackOverflow Python QA Dataset
[](https://github.com/meeAtif)[](https://creativecommons.org/licenses/by-sa/4.0/)
## Description
This dataset contains high-quality Python questions and answers scraped from StackOverflow. It is designed for instruct-tuning Large Language Models (LLMs) or for question-answering tasks.
- **Source**: StackOverflow- **Selection Criteria**: - Tag: `python` - Score: > 10 - Must have an **accepted answer**- **Content**: Pairs of instructions (Question) and outputs (Accepted Answer).
## Dataset Structure
The dataset consists of the following fields:
- `question_id`: The unique identifier for the question on StackOverflow.- `score`: The vote score of the question.- `tags`: A list of tags associated with the question.- `creation_date`: The timestamp of when the question was asked.- `instruction`: The full question title and body, cleaned of HTML.- `output`: The full body of the accepted answer, cleaned of HTML.
## Sample Entry
```json{ "question_id": 12345, "score": 50, "tags": ["python", "list-comprehension"], "instruction": "How do I create a list... \n\n I have a loop that...", "output": "You can use a list comprehension:\n\n [x for x in iterable]"}```
## Author
- **GitHub** [@meeAtif](https://github.com/meeAtif)- **Linkedin** [@meAtif](https://www.linkedin.com/in/meatif/)- **HuggingFace** [@meeAtif](https://huggingface.co/meeAtif)- **Email:** iatif@proton.me- **DM For:** Collaborations, Feedback, or Updates
------README.md+64-69