Reformat output table so each city is listed once with years underneath

Open
#32 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
44/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
backend

Research direction

Find the code that passes in the sorting function and inspect how its output table is assembled. Implement the requested ordering: group by city or county, use each group's maximum relevancy score first, then sort by name and year. Done when each city or county appears together with its years underneath and the rows follow that order.

Written by the indexing model from the issue text.

Description

in the code there is a place where we are passing in a sorting function. Write a custom sorting key function that:

  1. Group by city/county
  2. Find max relevancy score for each city/county
  3. Sort first by this
  4. Second by city/county name
  5. Third by year
Dominant language
Python
Stars
2
Forks
4
PR merge metrics
No merged PRs in 30d

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ucdavis/General-Plan-Map-Python

All issues in ucdavis/General-Plan-Map-Python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.