I am just trying to connect to an .accdb and read in an existing table. I am using pypypodbc to connect:
import pandas as pd
import pypyodbc
conn = pypyodbc.connect(
r"Driver={Microsoft Access Driver (*.mdb, *.accdb)};"
r"Dbq=C:\Users\Public\Data.accdb;")
The connection seems to work and I can read in most tables using:
data = pd.read_sql('SELECT * FROM TABLE', conn)
However, when I try to read in a table with a column containing Double values with varying decimal points (but no nulls) I get the following:
ValueError: could not convert string to float: b'E-2'
How can I get this data in to pandas?