a = np.random.randint(0, 256, (10, 10)).astype('uint8')
b = pd.DataFrame(a)
c = StringIO()
b.to_csv(c, sep=' ', header=False, index=False)
c.seek(0)
d = pd.read_csv(c, sep=' ', header=None, dtype='uint8')
d
pandas unable to read from large StringIO object