python - Pyodbc extracts only top three rows -
i making transition r python , flat files relational databases, ugly.
after establishing connection database using pyodbc, use pandas extract tables need. know fact data table need have @ least 4000 rows keep getting 3 rows. pretty sure it's option im not specifying correctly, it's not obvious going wrong.
import pyodbc import pandas pd pandas import * cnxn = pyodbc.connect('dsn=mydsn') hdem = pd.read_sql('select * mytable', cnxn) hdem.shape
where going wrong here? many in advance.
Comments
Post a Comment