Sebastian Baltser

Results 3 comments of Sebastian Baltser

The `int()` function returns an integer value but does not modify the parameter passed to it i.e. `int(answer_031)` returns the integer value of `answer_031`, but leaves the variable unchanged. In...

Line number 11 should be: ```data2 = data.loc[(data["Observation_Type"]=="TMAX")].copy()``` Using just `data2=data.loc[(data["Observation_Type"]=="TMAX")]` will result in *a view* of `data` being assigned to `data2`. You don't want that as that can give...

A variable can refer to a function and thus behave in the same way as the function. Check out this example with the `len` function: ```python >>> len([1,2,3,4]) 4 >>>...