You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Selecting from decimal (18,6) return NaN in pandas #109
Note that in the second example you are avoiding pd.read_sql entirely, suggesting this method might be causing the problem.
I suggest fetching the rows from the database using the Teradata library (via cursor.execute(query).fetchall()), then creating a dataframe using the list of returned Row objects. Depending on what the pandas constructor expects, you may need to access the .columns and .values of individual rows.
Activity
Diyago commentedon Sep 3, 2018
My problem easily fixed my using another library:
Is this library actually supported?
tetraptych commentedon Sep 3, 2018
Note that in the second example you are avoiding
pd.read_sqlentirely, suggesting this method might be causing the problem.I suggest fetching the rows from the database using the Teradata library (via
cursor.execute(query).fetchall()), then creating a dataframe using the list of returnedRowobjects. Depending on what the pandas constructor expects, you may need to access the.columnsand.valuesof individual rows.