I have a dataframe like this:
This dataframe has several columns. Two are of type float: price and change, while volme and amountare of type int. I use the method df.values.tolist() change df to list and get the data:
datatmp = df.values.tolist() print(datatmp[0]) [20160108150023.0, 11.12, -0.01, 4268.0, 4746460.0, 2.0] The int types in df all change to float types. My question is why do int types change to the float types? How can I get the int data I want?
