Timeline for Applying a function to a Dataset column conditional on another slot's value
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 16, 2014 at 0:16 | comment | added | Leonid Shifrin | @alancalvitti See my edit for a better approach. | |
Sep 16, 2014 at 0:15 | history | edited | Leonid Shifrin | CC BY-SA 3.0 |
Replaced with a more general code
|
Sep 16, 2014 at 0:07 | comment | added | alancalvitti |
Well I didn't want to bloat the example but the actual data has many columns. Can you modify with something similar to this? (Append[ Complement[data[1, Keys] // Normal, {"LOCATION"}] // Normal // AssociationMap[Identity], {"LOCATION" -> (If[#PLATFORM === "Dropbox", foo[#LOCATION], #LOCATION]&)}]
|
|
Sep 15, 2014 at 23:59 | history | answered | Leonid Shifrin | CC BY-SA 3.0 |