What are you expecting to get from the format specifier %4d? It takes an int and if it has less than 4 digits it right-justifies it with spaces (42 --> “__42”).
What I was publishing was a long list of data in a single line. If you want this in columns like that, I’d just use %d since it’s not really necessary to bother indenting it visually as I did.
(And as the value is an int, not a float, there’s no point to having any decimal places for it.)