runtime

datasets real and made-up data to practise on

Datasets

Data for the Playground, Database Lab and Performance Lab. Pick one and open its files.

A fictional programming Q&A site: questions and answers with HTML bodies, tags and votes.

300 questions3 tablesJan 2023 – Jun 2025

what to watch for

Tricky rows

  • Bodies are HTML with escaped code (<, >, &)741 rows
  • All of a question’s tags in one string: "<python><pandas>"300 rows
  • Posts whose owner account was deleted (owner_user_id empty)18 rows
  • Questions with no answers101 rows

files

Open a file to see what one row means, its columns and a preview. Open in Playground starts a new file there with code that loads it.

users635 rows · 5 columns · CSV

One user who asked or answered a question here.

In your code: data/users.csv

  • user_idintegerkey

    User ID

  • display_nametext

    Invented display name

  • reputationinteger

    Reputation points

  • created_attimestamp

    Account created, UTC

  • locationtext · can be empty

    Free-text location

questions300 rows · 13 columns · CSV

One question.

In your code: data/questions.csv

  • question_idintegerkey

    Question ID

  • owner_user_idinteger · can be empty→ users

    Who asked; empty if the account was deleted

  • titletext

    Title

  • bodytext

    HTML body

  • tagstext

    Tags as "<python><pandas>"

  • scoreinteger

    Up votes minus down votes

  • view_countinteger

    Views

  • answer_countinteger

    Answers

  • accepted_answer_idinteger · can be empty

    The accepted answer, if any

  • created_attimestamp

    Asked, UTC

  • closed_attimestamp · can be empty

    Closed, UTC

  • closed_reasontext · can be empty

    Why it was closed

  • last_activity_attimestamp

    Last activity, UTC

answers441 rows · 7 columns · CSV

One answer to a question.

In your code: data/answers.csv

  • answer_idintegerkey

    Answer ID

  • question_idinteger→ questions

    Question

  • owner_user_idinteger · can be empty→ users

    Who answered; empty if deleted

  • bodytext

    HTML body

  • scoreinteger

    Score

  • created_attimestamp

    Answered, UTC

  • is_acceptedinteger

    1 for the accepted answer

data/Posts.xml741 records · XML

One question.

In your code: data/Posts.xml

relationships

How to join these tables. Left column matches the right column.

  • questions.owner_user_id → users.user_id
  • answers.question_id → questions.question_id
  • answers.owner_user_id → users.user_id

where the course uses it

Lessons and practice questions use small samples of Q&A Forum; projects open its files.

Q&A Forum dataset — Python Datasets · Runtime