Facebook Group Member Threshold

Easy
Filtering
Social Media
Meta

Facebook Group Member Threshold

A Facebook-style communities team reviews large groups.

Return group_id, group_name, members for groups with at least 50,000 members. Sort by group_id 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.groups6 rows
group_id (int)group_name (string)members (int)
1Weekend Hikers52000
2Home Chefs18000
3City Cyclists76000
4Book Club50000
5Photo Walkers34000
6Pet Parents91000

Return these columns

group_id(bigint)
group_name(string)
members(bigint)

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.