initial upload
Browse filesFiles changed (2)
- README.md+66
- python-qa-stackoverflow.parquetAdded+3
123---license: cc-by-sa-4.0---123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869---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/)## DescriptionThis 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 StructureThe 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```pythonfrom datasets import load_datasetdataset = 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)*
123version https://git-lfs.github.com/spec/v1oid sha256:12af5f62f367356edfc8b360e5373c0f0f5354f4e3d80d71243991acd87f4f8csize 3043637README.md+66
python-qa-stackoverflow.parquetAdded+3