I have a list of numbers in a file after binning the values to the nearest integers by using the dict
,and Counter
functions...
from collections import Counter
count_numbers=dict(Counter([round(x) for x in list_numbers])
and the values i got are:-
{1.0: 4, 2.0: 1, 3.0: 6, 4.0: 2, 5.0: 2, 6.0: 2, 7.0: 1, 9.0: 2, 10.0: 2, 12.0: 2, 13.0: 1, 15.0: 2, 16.0: 1, 17.0: 1}
But how can i get it in this form..? 1.0 4 2.0 1 3.0 6 4.0 2 5.0 2 and so on... ie., i need to remove the colons and commas from the list of values.. How can i do tht..??