I have a Oracle table with columns of type VARCHAR2
(i.e. string) and of type NUMBER
(i.e. a numeric value with a fractional part). And the numeric columns contain indeed values with decimal points, not integer values.
However when I read this table into a Pandas dataframe via pandas.read_sql
I receive the numeric columns in the data frame as int64
. How can I avoid this and receive instead float
columns with the full decimal values?
I'm using the following versions
python : 3.7.4.final.0
pandas : 1.0.3
Oracle : 18c Enterprise Edition / Version 18.9.0.0.0