Posts by Cláudio R. Junior • 91 points
2 posts
-
7
votes2
answers80
viewsQ: How to understand mapping (map) of functions list in Python?
lista = [0, 1, 2, 3, 4] def square(y): return (y**2) def cube(y): return (y**3) funcs = [square, cube] for i in lista: valor = map(lambda x: x(i), funcs) print(list((valor))) Exit: [0, 0] [1, 1] [4,…
-
2
votes1
answer70
viewsQ: DAX Filter Context - Powerbi
I have a simple spreadsheet for fuel supply control 3 columns: Date of filling KM Car Plate on odometer at the time of filling. I want to set up a measurement to know how much was driven in KM For…