32 private links
use double-shebang to run shell script to install the python package manager written in rust (uv) then use it to run python script with arbitrary dependencies, all in one file
DataFrames for the new era
3.3 Parentheses
Use parentheses sparingly.
It is fine, though not required, to use parentheses around tuples. Do not use them in return statements or conditional statements unless using parentheses for implied line continuation or to indicate a tuple.
x1.slot1 = 1
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Input In [3], in <module>
----> 1 x1.slot1 = 1
AttributeError: 'Example' object has no attribute 'slot1'Avoid them if you want to subclass variable length builtins like long, tuple, or str, and you want to add attributes to them.
Avoid them if you insist on providing default values via class attributes for instance variables.
"At some point, you have to make assumptions about the structure of the value in order to use it, and you know what those assumptions are because you wrote the code."
what if i'm using someone else's code, or someone else's data?
The 9 time series libraries everyone needs:
• tick
• maya
• sktime
• PyFlux
• tslearn
• luminol
• dateutil
• Prophet
• bayesloop