I want to choose column based on dtype. Examples:
a = np.random.randn(10, 10).astype('float')
b = np.random.randn(10, 10).astype('uint8')
t=np.hstack((a,b))
t=pd.DataFrame(t)
uints = t.select_dtypes(include=['uint8']).columns.tolist()
The expected output from uints is: [10,11,12,13,14,15,16,17,18,19] The problem is when i join my original numpy data (a and b) together using hstack, dtype cannot be detected correctly as the code above returning [].