Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
brahbrah
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
brahbrah
3y ago
If you have a mortgage, it ain’t half bad
2.
▲
by
brahbrah
3y ago
> I could not imagine this ever happening when dealing with the IRS. Have you tried? I haven’t tried it with the IRS, but I have tried asking my states permitting and planning department about the legality of various rental schemes for a
3.
▲
by
brahbrah
3y ago
> And is the only source I know to offer 2 weeks of hourly forecasts Enjoy the data directly from the source producing them. American weather agency: https://www.nco.ncep.noaa.gov/pmb/products/gfs/ Europea
4.
▲
by
brahbrah
3y ago
Would you pay it off early if you have a 2.5% interest rate and could get a guaranteed 5+% on a CD?
5.
▲
by
brahbrah
3y ago
> If they weren't, Delta would say so, since it makes them look better. That they won't say means the parts were used in service. More likely they would just never comment whether it makes them look better or not, because other
6.
▲
by
brahbrah
3y ago
> have to be accessed through python It’s because most of the people doing these computations don’t have the capacity to become experts in multiple fields. They understand the math and analytics very well, and they expend all their time
7.
▲
by
brahbrah
3y ago
The explanation I’ve always heard for why New Zealand was settled by Polynesians so late is that they preferred to start their voyages against the currents when they were fresh so that they wouldn’t have to fight the currents on their way b
8.
▲
by
brahbrah
3y ago
Mining is not needed to keep the grid reliable or smooth imbalances. You can achieve this by dispatching or cutting off the marginal generators needed to serve the load in real time (the marginal generators serving the load of these facilit
9.
▲
by
brahbrah
3y ago
Dask added an actor model after seeing it in Ray. I’ve used dasks in some computationally intensive applications (already had existing dask infrastructure which is why we didn’t go with rays)
10.
▲
by
brahbrah
3y ago
This is why you see a lot of 1 year and 1 day sentences. Any federal sentence 1 year or less must be served 100% in full. If it’s 1 year and 1 day it’s eligible for the time reduction credit and you can serve less than 1 year.
11.
▲
by
brahbrah
3y ago
Vermont also consumes ~3x more energy (all energy, not just electricity) than it produces and has the lowest energy consumption of any state. https://www.eia.gov/state/?sid=VT
12.
▲
by
brahbrah
3y ago
Just speaking it off my ass here, but it could be the scale of those companies that make those teams viable. Like let’s say you have some standardized systems that can cover the use cases of 20% of your teams. If you have 1000 teams vs 10 t
13.
▲
by
brahbrah
3y ago
To be fair pandas was never meant to be a replacement for sql, it was meant to be a replacement for excel in financial models. Which it still excels at (pun intended).
14.
▲
by
brahbrah
3y ago
So something like this? def add(df1, df2, meta_cols, val_cols=None): # join on meta cols # add val cols (default to all non meta cols if None) # return df with all meta and val cols selected In theory I thin
15.
▲
by
brahbrah
3y ago
(Taken from an old comment of mine) If you were to say “pandas in long format only” then yes that would be correct, but the power of pandas comes in its ability to work in a long relational or wide ndarray style. Pandas was originally writt
16.
▲
by
brahbrah
3y ago
The first issue I have with it is that they've now convinced a large portion of people that read this article that a very good tool is not as good as it actually is. This is a disservice to the great engineering that has gone into it.
17.
▲
by
brahbrah
3y ago
This is a very valid point that I can’t disagree with. I’ve gone through the pain of learning that subset of the language decently well, but also been lucky enough to work at places that compensate very well for that knowledge.
18.
▲
by
brahbrah
3y ago
So in addition to what akasaka said (another thumbs up for line profiler from me, great tool) this isn’t a problem with linalg.norm being slow. It’s plenty fast, but calling it thousands of separate times in a Python loop will be slow. This
19.
▲
by
brahbrah
3y ago
No, their v1.5 is still calling norm on every polygon. They’re still using it wrong On Google colab import numpy as np import time vals = np.random.randn(1000000, 2) point = np.array([.2, .3]) s = time.time() for
20.
▲
by
brahbrah
3y ago
On Google colab import numpy as np import time vals = np.random.randn(1000000, 2) point = np.array([.2, .3]) s = time.time() for x in vals: np.linalg.norm(x - point) < 3 a = time.time() - s s
21.
▲
by
brahbrah
3y ago
Yea sorry that was just pseudo code. You want it in this form: centers = np.array([ [3, 3], [4, 4] ]) point = np.array([3.5, 3.5]) vals = centers - point np.linalg.norm(vals, axis=1)
22.
▲
by
brahbrah
3y ago
Agreed it was well written, but kinda pointless though since they could have “solved” the problem using the existing tools in a couple lines of code without any new deps. All that content annd profiling and they missed the fact that they we
23.
▲
by
brahbrah
3y ago
They would have gotten the same performance in python with numpy if they did it like this instead of calling norm for every polygon centers = np.array([p.center for p in ps]) norm(centers - point, axis=1) They were just using numpy wrong. Y
24.
▲
by
brahbrah
3y ago
This was a silly and unnecessary optimization. He’s just using numpy wrong. Instead of: for p in ps: norm(p.center - point) You should do: centers = np.array([p.center for p in ps]) norm(centers - point, axis=1) You’ll get your same spe
25.
▲
by
brahbrah
3y ago
Does it support multiindex columns?
26.
▲
by
brahbrah
4y ago
fn_graph: https://github.com/BusinessOptics/fn_graph (My favorite one ^) pyungo: https://github.com/cedricleroy/pyungo Loman: https://github.com/janushendersonassetallocation/
27.
▲
by
brahbrah
4y ago
Not to take away from anything you’ve done here, you guys have put a lot of great effort into this, but this paradigm is not “new”. It’s a common modeling paradigm in banks and hedge funds at least. I’ve built/worked on frameworks base
28.
▲
by
brahbrah
4y ago
I don’t think it’s so black and white. Depends on what you’re doing. If you’re doing lots of cross dataset operations like econometric and physical system modeling polars can get a bit too verbose. Eg how would you do the following two pand
29.
▲
by
brahbrah
4y ago
Fwiw I actually do prefer polars for standard long format relational operations. But sometimes it’s just more convenient to work with data in other ways. Another example: Polars: polars_df.with_column( pl.when(pl.col('tim
30.
▲
by
brahbrah
4y ago
I see your: ( polars_df1 .join(polars_df2, on=['state', 'county', 'timestamp'], suffix='_r') .with_column( ( pl.col('val') + pl.col('val_r'
More ›