I have the next DataFrame:
df = pd.DataFrame({'a': [100, 3,4], 'b': [20.1, 2.3,45.3], 'c': [datetime.time(23,52), 30,1.00]})
and I would like to detect subtypes in columns without explicit programming a loop, if possible.
I am looking for the next output:
column a = [int]
column b = [float]
column c = [datetime.time, int, float]
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…