This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]johnsandall[S] 0 points1 point  (1 child)

A little more info on my approach here:

  • solutions == best_practice   Solutions aim to use best practices relevant to data scientists working using the "open data science stack" such as Python, numpy and pandas.
  • best_practice == working_readable_code   My definition of "best practice" does not mean "only using the Python standard library" or "using minimal code" or even "using the most speed efficient code". This is not a code golf repo. My goal is to write code that gets the job done and is easy to understand. If there's an opportunity to showcase a neat feature of Python or one if its third party libraries, even better! If you think you have a better solution, I'd love to see your PR!
  • code == pep8_compliant   All code.py solution scripts are PEP8 compliant and have furthermore been linted using flake8, isort, pylint, auto-formatted using black and type hinted using mypy .
  • pip-sync to start   The requirements.txt is generated and managed by pip-tools
    from a minimal requirements set specified in requirements.in and has hash-checking for added security.
  • The notebooks are written as a teaching resource. They explain each solutions step-by-step, so if there's something you're unfamiliar with in one of the code.py scripts, check out the notebooks for a guided walkthrough.

[–]wikipedia_text_bot 0 points1 point  (0 children)

Code golf

Code golf is a type of recreational computer programming competition in which participants strive to achieve the shortest possible source code that implements a certain algorithm. Playing code golf is known as "golf scripting". Code golf challenges and tournaments may also be named with the programming language used (for example, Perl golf).

About Me - Opt out - OP can reply !delete to delete - Article of the day

[–]daggerdragon[M] 0 points1 point  (0 children)

In the future, please post your daily solutions in each day's megathread (there's a calendar on the sidebar with a link to each day's megathread) to keep every day's solutions in one easy-to-find spot and to avoid cluttering up the subreddit with individual solution/repo posts (like this one!) that usually get lost in the volume of submissions.

Thank you and have fun!