pd.options.display.max_rows = 12
N = 100000
chars = np.array(list('ABCDEF'))
s = pd.Series(np.random.choice(chars, size=4 * np.prod(N)).view('S4'))
s
Fast way to convert strings into lists of ints in a Pandas column?