Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Analyzing Data 180,000x Faster with Rust. Parent comment
> for qs in combinations(all_qs, K):
> > ...
> > corrs.append({'qs': qs, 'r': r})
>
> corrs.sort_values(...)
with a python style list comprehension:
> def build_q(combination):
> > return {'qs': qs, 'r': r}
> max(build_q(c) for c in combinations(all_qs, K), key = lambda v: v['r'])
There are no comments on this comment yet.
> for qs in combinations(all_qs, K):
> > ...
> > corrs.append({'qs': qs, 'r': r})
>
> corrs.sort_values(...)
with a python style list comprehension:
> def build_q(combination):
> > ...
> > return {'qs': qs, 'r': r}
>
> max(build_q(c) for c in combinations(all_qs, K), key = lambda v: v['r'])