The largest salary number in your export may belong to a different unit of pay.

You're about to publish a comparison. Sorting salaryMax gives you a reassuringly tidy ranking, just when you'd prefer to stop finding problems with the chart.

The Bumeran search Actor supplies salary endpoints through optional detail enrichment, only where employers publish pay. Its salaryPeriod and salaryType fields have no supplied value dictionaries, and the salary record provides neither a currency field nor a conversion rule.

Numeric salary endpoints alone do not establish comparable pay.

What does a record count?

In search mode, a record represents a job listing. No payslip attached.

Results from multiple search keywords are merged by job ID, which makes jobId useful for identifying listings without establishing that separate advertisements represent separate underlying vacancies.

Start by preserving the collection settings alongside the dataset identity. Otherwise, you could spend an afternoon investigating employer disclosure when enrichment wasn't enabled.

Example collection input: this cell requests detail enrichment and retains the settings that define the collection.

import os import json import math import re import pandas as pd import duckdb from apify_client import ApifyClient run_input = { "mode": "search", "searchQueries": ["desarrollador"], "includeJobDetails": True, "maxItems": 50, } client = ApifyClient(os.environ["APIFY_TOKEN"]) run = client.actor( "dataspryva/bumeran-argentina-job-search-and-company-lookup" ).call(run_input=run_input) if run["status"] != "SUCCEEDED": raise RuntimeError(f"Collection ended with status {run['status']}") manifest = { "input": run_input.copy(), "dataset_id": run["defaultDatasetId"], } items = [] for item in client.dataset(run["defaultDatasetId"]).iterate_items(): items.append(item) 

The cap defines the export's maximum size. It doesn't count the labour market.

With several keywords, earlier keywords can fill that cap before later keywords contribute, so even the search terms you submitted may not receive equal representation.

Your eventual denominator is the collected listings under these settings. Calling it “jobs in Argentina” would ask the sample to do considerably more work than it signed up for.

Keep the evidence before typing it

Some fields identify the listing; others carry advertised bounds or clues about how to interpret them.

Their output scalar types aren't specified. The pandas types below are analytical choices, not promises about incoming JSON.

Field or input Content and availability Working type and analytical trap
includeJobDetails Boolean input, default false; enables optional detail enrichment Retain in the collection manifest. It records a request for enrichment, not confirmation that every row received it.
jobId Listing identifier in the base job record Nullable string, retaining the original value. Missing or repeated identifiers need review before a listing-level join.
salaryMin Lower advertised endpoint, emitted only for listings publishing pay Nullable Float64 after conservative parsing. A lower bound isn't an observed wage.
salaryMax Upper endpoint of the advertised range Use the same numeric policy as the lower endpoint. Sorting it ranks advertised ceilings.
salaryPeriod Pay-period qualifier associated with salary information Keep the raw JSON representation and type. Familiar-looking codes don't establish a unit.
salaryType Additional salary qualifier, available when the source supplies it Retain as an opaque category. Gross, net and other interpretations require supporting evidence.
description Plain description, always present for job records Nullable string in the loader. Its wording may help substantiate a pay interpretation.
descriptionHtml Formatted description from optional enrichment, when available Preserve markup separately as text. It isn't an additional listing.

Empty output fields are omitted. Preserve key presence before normalisation so that an absent key remains distinguishable from an explicitly empty value.

This cell retains the selected raw values and builds a separate text view.

salary_fields = ["salaryMin", "salaryMax", "salaryPeriod", "salaryType"] text_fields = ["jobId", "description", "descriptionHtml"] selected_fields = text_fields + salary_fields raw = pd.DataFrame({ field: pd.Series( [item.get(field, pd.NA) for item in items], dtype="object" ) for field in selected_fields }) present = pd.DataFrame({ field: pd.Series( [field in item for item in items], dtype="boolean" ) for field in salary_fields }) jobs = raw[text_fields].astype("string") 

Keep raw attached to the audit. Converting an identifier to text helps with joins, while its original representation lets you investigate a match that looks suspiciously convenient.

A number needs a parsing policy

A permissive currency cleaner can turn ambiguity into confidence: remove punctuation, coerce the result and admire the clean column.

We'd rather keep a review row.

The parser below accepts finite JSON numbers and whitespace-padded integer strings, but sends strings containing decimal marks, grouping separators or currency text to review until their formatting convention is established.

It also rejects booleans. Python otherwise treats them as numbers.

This cell types the endpoints without guessing what formatted monetary strings mean.

def parse_endpoint(value): if value is pd.NA or value is None: return pd.NA, "missing" if isinstance(value, bool): return pd.NA, "rejected_type" if isinstance(value, str): token = value.strip() if not token: return pd.NA, "blank" if re.fullmatch(r"[+-]?[0-9]+", token) is None: return pd.NA, "review_format" value = token elif not isinstance(value, (int, float)): return pd.NA, "rejected_type" try: number = float(value) except (ValueError, OverflowError): return pd.NA, "unrepresentable" if not math.isfinite(number): return pd.NA, "nonfinite" return number, "parsed" parse_status = pd.DataFrame(index=raw.index) for endpoint in ["salaryMin", "salaryMax"]: parsed = raw[endpoint].map(parse_endpoint) jobs[endpoint] = pd.Series( [result[0] for result in parsed], index=raw.index, dtype="Float64" ) parse_status[endpoint] = pd.Series( [result[1] for result in parsed], index=raw.index, dtype="string" ) 

Float64 is suitable for these descriptive summaries, rather than exact monetary accounting. Retained originals allow closer examination if precision or formatting becomes material to the claim.

A missing endpoint stays missing.

Filling it with zero would invent an advertised bound; copying the available endpoint would manufacture a point offer from an incomplete range.

Missing pay changes who the average describes

With enrichment requested, absent salary fields still have several possible explanations: an employer hasn't published pay, the source lacks the field, or an expired or removed detail record leaves only the base search record.

The exported salary fields don't distinguish those cases.

That changes the claim an average can support:

Collected listings -> complete, parseable, ordered advertised ranges -> ranges with independently verified comparable units 

Each step changes the population. Report the collected denominator, the number surviving range checks and the number whose units you could establish.

This cell flags incomplete, reversed and negative ranges for review rather than silently repairing them.

has_both = jobs[["salaryMin", "salaryMax"]].notna().all(axis=1) reversed_range = jobs["salaryMin"].gt(jobs["salaryMax"]).fillna(False) negative_endpoint = ( jobs[["salaryMin", "salaryMax"]].lt(0).fillna(False).any(axis=1) ) jobs["range_ready"] = has_both & ~reversed_range & ~negative_endpoint range_review = ( jobs.loc[~jobs["range_ready"], ["jobId", "salaryMin", "salaryMax"]] .join(raw[salary_fields].add_prefix("raw_")) .join(parse_status.add_suffix("_parse_status")) .join(present.add_suffix("_key_present")) ) range_counts = pd.Series({ "collected_listings": len(jobs), "complete_parsed_ranges": int(has_both.sum()), "ranges_passing_checks": int(jobs["range_ready"].sum()), }) 

These are overlapping audit counts, not mutually exclusive failure categories. Flagging a negative endpoint is our review policy, rather than a claim about a source validation rule.

The surviving rows describe a selected population.

Extending their average to listings without usable salary information requires a missingness model, along with an explanation of why its assumptions fit employer pay disclosure.

Treat qualifier values as opaque labels

Before interpreting the qualifiers, inventory them.

Preserve their JSON types during that inventory, because a numeric code and a string containing the same characters shouldn't become interchangeable merely because pandas makes that convenient.

This cell creates type-preserving category keys and counts their observed combinations, including missing qualifiers.

def qualifier_key(value): if value is pd.NA or value is None: return pd.NA if isinstance(value, str) and not value.strip(): return pd.NA if isinstance(value, float) and not math.isfinite(value): return pd.NA return json.dumps( value, ensure_ascii=False, sort_keys=True, allow_nan=False ) for qualifier in ["salaryPeriod", "salaryType"]: jobs[qualifier] = raw[qualifier].map(qualifier_key).astype("string") jobs["unit_complete"] = jobs[ ["salaryPeriod", "salaryType"] ].notna().all(axis=1) qualifier_inventory = ( jobs.groupby(["salaryPeriod", "salaryType"], dropna=False) .agg( listings=("range_ready", "size"), ranges_passing_checks=("range_ready", "sum"), ) .reset_index() ) 

Matching qualifier values give you a category to investigate. They aren't proof of comparable remuneration.

Read the descriptions where they contain relevant wording, but resist treating silence about currency as evidence that unrelated listings share one.

Absence isn't a conversion policy.

Compare only rows whose units you can defend

Use an analyst-maintained verification table at listing level. Assigning currency or pay basis from the qualifier pair alone could spread an unsupported interpretation across unrelated advertisements.

For each verified row, record the exact encoded qualifier keys, a comparison-group label and evidence supporting that assignment.

Make the label specific enough to distinguish currency, period and pay basis, plus any working-time assumptions relevant to the comparison. Unresolved listings remain in the coverage counts.

There's no automatic annualisation here: conversion requires an established period and explicit assumptions about paid periods, hours and additional remuneration.

This cell leaves verification empty until you supply evidence, then calculates endpoint summaries only within approved groups.

verification_columns = [ "jobId", "salaryPeriod", "salaryType", "unit_group", "evidence" ] verification = pd.DataFrame({ column: pd.Series(dtype="string") for column in verification_columns }) # Populate verification with reviewed listings before this merge. if verification[verification_columns].isna().any().any(): raise ValueError("Verification requires every field") if any( verification[column].str.strip().eq("").any() for column in verification_columns ): raise ValueError("Verification fields cannot be blank") if verification["jobId"].duplicated().any(): raise ValueError("Verification must identify each listing once") candidate_ranges = jobs.loc[ jobs["range_ready"] & jobs["unit_complete"] & jobs["jobId"].notna() ].copy() if candidate_ranges["jobId"].duplicated().any(): raise ValueError("Repeated listing IDs require review") comparable = candidate_ranges.merge( verification, on=["jobId", "salaryPeriod", "salaryType"], how="inner", validate="one_to_one", ) coverage = pd.Series({ "collected_listings": len(jobs), "verified_comparable_listings": len(comparable), }) connection = duckdb.connect() connection.register("verified_ranges", comparable) salary_summary = connection.execute(""" SELECT unit_group, count(*) AS listings, avg(salaryMin) AS mean_advertised_lower, avg(salaryMax) AS mean_advertised_upper FROM verified_ranges GROUP BY unit_group """).df() connection.close() 

The empty verification table produces no comparison groups. Sometimes that's the defensible result.

The worked example uses Bumeran Argentina Job Search & Company Lookup.

Keeping lower and upper endpoints separate preserves the distinction between an advertised floor and ceiling, whereas a midpoint introduces an assumption about what value should represent the interval.

Arithmetic can supply that midpoint. The advertisement can't establish that anyone receives it.

Where the claim has to stop

These records describe published offers, not accepted salaries or realised earnings. They don't reveal where a successful applicant landed within a range.

Even verified units leave a question about time: comparing advertisements across publication periods requires an explicit nominal-price or inflation-adjustment basis.

For publication, attach the collection scope, exclusion counts, unit-verification method and endpoint definition to the figure, so your reader can see exactly which listings support it.

Describe the result as advertised pay among the included listings.

Your ranking can tell you which verified advertised ceiling is largest. It can't tell you who earns the most.

Drafted with AI assistance and reviewed for accuracy.