387 karma · joined July 23, 2021
Geneguessr encountered a problem:
runtime-error
SyntaxError: redeclaration of const NAVIGATION_STARTThat's crazy. Boolean logic is the most fundamental notion of computer science, I can still remember learning that in my very first course on my very first year.
The real reason the iPhone mini failed is not related to screen size, it's because its segment was canibalized by the cheaper alternative, the SE. The 2020 and 2022 sold like hot breads, wherehas their screen was almost an inch smaller than the iPhone mini. This is the proof that there a significant market for people who don't care about size and would gladly take the smallest option at a $100 discount from the regular one.
https://elevation.nationalmap.gov/arcgis/services/3DEPElevat...
Preview in QGIS: https://ibb.co/B5T49YBj
Unfortunately, that is impossible: https://trufflesecurity.com/blog/anyone-can-access-deleted-a...
The state, maybe. The missisipian, not so much - considering their Human Development Index is right in between that of Hungary and Bulgaria, at the very bottom of the EU. How great is it to be able to buy expansive cars if you can't get access to education, healthcare, retirement, and will find yourself in the street if you lose your job.
For the rest of your comment: it's the best you can do in python. Sure you could write SQL, but then you're mixing text queries with python data manipulation and I would dread that. And SQL-only scripting is really out of question.
That's because it's a bad way to use Pandas, even though it is the most popular and often times recommended way. But the thing is, you can just write "safe" immutable Pandas code with method chaining and lambda expressions, resulting in very Polars-like code. For example:
df = (
pd
.read_csv("./file.csv")
.rename(columns={"value":"x"})
.assign(y=lambda d: d["x"] * 2)
.loc[lambda d: d["y"] > 0.5]
)
Plus nowadays with the latest Pandas versions supporting Arrow datatypes, Polars performance improvements over Pandas are considerably less impressive.Column-level name checking would be awesome, but unfortunately no python library supports that, and it will likely never be possible unless some big changes are made in the Python type hint system.