Total Funding per Sector

Easy
Aggregation

Total Funding per Sector

The startups table contains funding rounds by sector.

Return sector, total_funding for each sector. Sort by sector 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.startups6 rows
startup_id (int)sector (string)funding (double)
1Fintech100
2Health50
3Fintech25
4Education75
5Health15
6SaaS200

Return these columns

sector(string)
total_funding(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.