Diverse Data Hub
  • Data Sets
  • Citation
  • Collaborate

    On this page

    • Employment discrimination based on sexual orientation or gender identity - Data package
      • Active Filters
      • CSV Structure
      • Metadata.json structure
      • About the data
      • Detailed information about the data
      • Employment discrimination based on sexual orientation or gender identity prohibited
        • How to cite this data
        • Source

    Employment discrimination based on sexual orientation or gender identity - Data package

    This data package contains the data that powers the chart “Employment discrimination based on sexual orientation or gender identity” on the Our World in Data website. It was downloaded on April 16, 2025.

    Active Filters

    A filtered subset of the full data was downloaded. The following filters were applied:

    CSV Structure

    The high level structure of the CSV file is that each row is an observation for an entity (usually a country or region) and a timepoint (usually a year).

    The first two columns in the CSV file are “Entity” and “Code”. “Entity” is the name of the entity (e.g. “United States”). “Code” is the OWID internal entity code that we use if the entity is a country or region. For normal countries, this is the same as the iso alpha-3 code of the entity (e.g. “USA”) - for non-standard countries like historical countries these are custom codes.

    The third column is either “Year” or “Day”. If the data is annual, this is “Year” and contains only the year as an integer. If the column is “Day”, the column contains a date string in the form “YYYY-MM-DD”.

    The final column is the data column, which is the time series that powers the chart. If the CSV data is downloaded using the “full data” option, then the column corresponds to the time series below. If the CSV data is downloaded using the “only selected data visible in the chart” option then the data column is transformed depending on the chart type and thus the association with the time series might not be as straightforward.

    Metadata.json structure

    The .metadata.json file contains metadata about the data package. The “charts” key contains information to recreate the chart, like the title, subtitle etc.. The “columns” key contains information about each of the columns in the csv, like the unit, timespan covered, citation for the data etc..

    About the data

    Our World in Data is almost never the original producer of the data - almost all of the data we use has been compiled by others. If you want to re-use data, it is your responsibility to ensure that you adhere to the sources’ license and to credit them correctly. Please note that a single time series may have more than one source - e.g. when we stich together data from different time periods by different producers or when we calculate per capita metrics using population data from a second source.

    Detailed information about the data

    Employment discrimination based on sexual orientation or gender identity prohibited

    Describes the prohibition of discrimination based on sexual orientation and/or gender identity in employment, including hiring, promotion, termination, harassment, etc. Last updated: April 7, 2025
    Next update: April 2026
    Date range: 1981–2025

    How to cite this data

    In-line citation

    If you have limited space (e.g. in data visualizations), you can use this abbreviated in-line citation:
    Equaldex (2025) – with major processing by Our World in Data

    Full citation

    Equaldex (2025) – with major processing by Our World in Data. “Employment discrimination based on sexual orientation or gender identity prohibited” [dataset]. Equaldex, “Equaldex” [original data]. Source: Equaldex (2025) – with major processing by Our World In Data

    Source

    Equaldex

    Retrieved on: 2025-04-07
    Retrieved from: https://www.equaldex.com/

    Notes on our processing step for this indicator

    • We have extracted the data from the official Equaldex JSON API.
    • We combine the historical and current data extracted from the API to create a time series.
    • Whenever policy implementation dates for a status are not provided in the data, and this status is the only available for the country, we consider that this status has not changed during the entire period of the dataset.
    • We group some of the categories the source has defined for each issue, for further clarity in our visualizations.
    • We present this data only for sovereign states, defined by Butcher and Griffiths (2020). We use the definitions of the latest year available.
     
     

    This page is built with Quarto.