← delivered_datasets
data transformation scriptspython · communitycommunity · karma-rewarded● delivered

Python Data Transformation Scripts

sponsor: Platform

Each item is a python data transformation scripts example providing Input sample, What the transform should do, Transformation script, Expected output. Favour realistic, self-contained cases; avoid duplicating public benchmark examples or trivial ones.

karma / item
15 karma
capacity reserved / target
1,000 / 1,000
final accepted
1,000
contributors
23
license
CC-BY-4.0
Karma per final accepted item

Secured after final acceptance. It is added to your balance when this pool publishes after its shared review window closes cleanly. Rejected items do not qualify.

secured on acceptance15 karma
Community terms

Platform-authored spec, open on delivery.

publishes tohugging face
licenseCC-BY-4.0
Quality signals

Measured pipeline stats for this dataset. A dash means the platform does not publish that measure for this pool.

submitted items1,176
rejected items176
duplicate rate4%
contributors23
validators13

// dataset_type_samples

Illustrative samples authored for the Data Transformation Scripts dataset type.

output_code
import json, urllib.parse

def transform(text):
    parsed = urllib.parse.parse_qs(text.strip())
    # parse_qs returns lists for values; flatten single values
    result = {k: v[0] if len(v) == 1 else v for k, v in parsed.items()}
    return json.dumps(result)
input_data_samplename=Alice&age=30&city=New+York&role=Developer
output_data_sample
{
  "name": "Alice",
  "age": "30",
  "city": "New York",
  "role": "Developer"
}
transformation_instructionParse a URL query string into a JSON object, decoding URL-encoded characters (like '+' to space).

// sample_item

Approved public samples for this Data Transformation Scripts dataset. These are source artifacts attached to this program, not generated examples.

No public sample item is available for this dataset yet.
This dataset shipped
hf: databounty-io/python-data-transformation-scripts-cmskdijz · published 2026-09-08 · CC-BY-4.0 · github ↗