The values in the mysql table contain 17 decimal places (double). e.g., 0.12345678901234567 or 0.00987654321098765.
When I try to import data from mysql by python pandas, the dataframe change my data from double to float. the value in df becomes 0.123457 or 0.00987654 (you can observe that the value in df is 6 sig. fig.) It creates the problem that I need the complete value of a data up to 17 decimal places.
The code I ran:
db_conn_str = 'mysql+pymysql://username:password@some_site/some_database'
db_conn = create_engine(db_conn_str)
df = pd.read_sql('SELECT * FROM some_table', con=db_conn)
How can I modify the pd.read_sql so I could get all decimal places of my data values? Thanks.