I am collecting conversion data from facebook’s API, and grouping it by hour.
As there isnt conversions for every single hour, it’s bringing a whole array of values comma separated, so as I want to put it in a google sheets, I need to input a value 0 for the hours I dont have any conversions.
I tried to use the code this article suggest , however, I am no getting the same result as my output just remove the null values instead of replace it with 0.
Input:

Output:

Best answer by Todd Harper
View original