Find · Find & Gather · Analysis & Finance
Best co-selling rep pairs with a partner
The short ranked list of your-rep-to-partner-rep pairs who share the most open accounts, so you set up the few high-yield co-selling calls.
You receive: A reviewed rep-pairing calculator + the passing test report, run on your two rosters.
Part of Grow Partnerships
Opens soon
Cost20 credits
AcceptanceAutomated check against your inputs
ProtectionHeld until verified delivery
This objective is verified and ready. It opens soon, once sign-in and payments are live.
Deliverable interface
The exact vocabulary the automated check enforces: keys, tokens, entry points, and worked examples. Generated from the verification source.
{
"constants": {},
"entryName": "find_best_coselling_pairs",
"expectNote": "expect is the comparison-space value (your return value goes through normalize first when one is published)",
"hiddenCaseCount": 10,
"hiddenCaseNames": [
"tie_by_your_rep",
"tie_by_partner_rep",
"zero_share_excluded",
"dup_once",
"truncate",
"custom_fields",
"empty_partner",
"sorted_accounts",
"blank_rows_skipped",
"top_n_zero_all"
],
"inputKeys": [
"account_field",
"partner_owner_field",
"partner_rep",
"partner_rows",
"shared_count",
"top_n",
"your_owner_field",
"your_rep",
"your_rows"
],
"normalizeSource": "def _cp_normalize(r):\n try:\n return [{\"your_rep\": str(x[\"your_rep\"]), \"partner_rep\": str(x[\"partner_rep\"]),\n \"shared_count\": int(x[\"shared_count\"]), \"shared_accounts\": [str(a) for a in x[\"shared_accounts\"]]} for x in r]\n except Exception:\n return repr(r)\n",
"returnShapes": [],
"signature": "def find_best_coselling_pairs(inp):",
"submission": "python exposing the entry function; inp is one input object; graded on held-out cases",
"tier": "calculator",
"visibleCases": [
{
"expect": [
{
"partner_rep": "Xu",
"shared_accounts": [
"A1",
"A2"
],
"shared_count": 2,
"your_rep": "Ann"
},
{
"partner_rep": "Yi",
"shared_accounts": [
"A3"
],
"shared_count": 1,
"your_rep": "Bob"
}
],
"input": {
"partner_rows": [
{
"account_id": "A1",
"owner": "Xu"
},
{
"account_id": "A2",
"owner": "Xu"
},
{
"account_id": "A3",
"owner": "Yi"
}
],
"top_n": 3,
"your_rows": [
{
"account_id": "A1",
"owner": "Ann"
},
{
"account_id": "A2",
"owner": "Ann"
},
{
"account_id": "A3",
"owner": "Bob"
}
]
},
"name": "basic"
}
],
"vocabulary": [
"account_field",
"account_id",
"owner",
"partner_owner_field",
"partner_rep",
"partner_rows",
"shared_accounts",
"shared_count",
"top_n",
"your_owner_field",
"your_rep",
"your_rows"
]
}Get early access to STUD the day it goes live.