« first day (4967 days earlier)   

12:15 AM
Meanwhile, I still can't work out how round works. Does C just use padding or something? The datatype doesn't change but how does it know how to truncate the remaining digits?
import numpy as np

a = np.array([1.1111])
b = np.round(a, 2)
print(a, a.dtype)
print(b, b.dtype)
 
12:46 AM
Well that was surprisingly boring to figure out. It literally just truncates digits and leaves it to __str__ for the display. As soon as you multiply it by a decimal with more digits, it expands out
 
@roganjosh Ok, thanks
@roganjosh hmm
@roganjosh wow
@roganjosh yes
I don't remember how C round works, but I think it works the same way
So the part that I need to see in the Polars doc wrt subject we're talking is that? docs.pola.rs/user-guide/lazy/execution/…
 
scan_ methods, yes
scan_x for reading and sink_x for writing
 
Here is the more general doc about it: docs.pola.rs/user-guide/lazy/using
Ok, thanks
Here too, reading from file: docs.pola.rs/user-guide/lazy/using/…
I found it difficult to understand from the documentation, it's not that simple, how do I use this function using scan parquet?
(X - np.min(X)) / (np.max(X) - np.min(X))
 
1:08 AM
Well for a start you don't use numpy
 
sure
hmm, it's like Pandas
So it's like working with a dataframe
 

« first day (4967 days earlier)