Insurance Approved Claim Total

Easy
Filtering
Aggregation
Insurance
Acko

Insurance Approved Claim Total

An insurance-style claims team summarizes approved payouts by policy type.

Return policy_type, approved_amount for approved claims. Sort by policy_type ascending.

Browser Engine: Evaluates PySpark DataFrame & SQL logic locally in Pyodide WebAssembly.

Input data

1 DataFrame

These DataFrames are passed to solve(spark, dfs). Access one with dfs['name'].

df.claims7 rows
claim_id (int)policy_type (string)status (string)amount (double)
1Healthapproved45000
2Autorejected30000
3Healthapproved25000
4Homeapproved60000
5Autoapproved18000
6Travelpending12000
7Homeapproved15000

Return these columns

policy_type(string)
approved_amount(double)

Column names and order must match. Sort order is specified in the question.

Browser engine
Loading Python editor…
Click Run to try the sample cases, or Submit to check the hidden cases. First run caches the browser Python engine (~8–15s once); all code stays on your device.