def one_digit_freqs(digits, normalize=False):
freqs = np.zeros(<NUM_LIT:10>, dtype='<STR_LIT>')<EOL>for d in digits:<EOL><INDENT>freqs[int(d)] += <NUM_LIT:1><EOL><DEDENT>if normalize:<EOL><INDENT>freqs = freqs/freqs.sum()<EOL><DEDENT>return freqs<EOL>
Consume digits of pi and compute 1 digit freq. counts.