Salaries – Sample CSV Dataset for Practice

Updated: August 3, 2023 By: Goodman Post a comment

A small dataset (with about 1000 rows) of the salaries of some hypothetical people for learning, practicing, and testing purposes. A person’s salary will have more or less related to the profession and the person’s age.

Here’s the URL of the salaries.csv file:

It has 4 columns: Name, Age, Job, and Salary.

You can download it manually via a web browser or read it directly using any programming language you like. Below is an example that uses pandas (Python):

import pandas as pd

import ssl
ssl._create_default_https_context = ssl._create_unverified_context

file_url = ''

df = pd.read_csv(file_url, storage_options={
                        'User-Agent': 'Mozilla/5.0'})

# 5 first rows


              Name  Age                  Job  Salary
0    Kevin Sanders   24    Software Engineer    7300
1       Lisa Mills   26  High School Teacher    6100
2    Donna Allison   27              Dentist   12700
3  Michael Schmitt   43              Dentist   17500
4     Lisa Shaffer   31           Accountant    7400

This is a simplified dataset. If you prefer a more complex dataset (also related to salary), see this page.

Happy coding, and have fun!