Skip to content

Commit a6b7ac4

Browse files
committed
avoid utf8 error
added text factory in order to avoid utf8 error as discussed here... http://oksoft.blogspot.in/2015/09/pandas-and-sql-queries.html
1 parent c6f34ff commit a6b7ac4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pandasql/sqldf.py

+1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ def conn(self):
7777
else:
7878
# create the connection
7979
conn = self.engine.connect()
80+
conn.text_factory = str
8081
self._init_connection(conn)
8182
try:
8283
yield conn

0 commit comments

Comments
 (0)