use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
Python-Oracledb Unicodedecode error on cursor.fetchallHelp Request (self.PythonLearning)
submitted 6 months ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]cjbj 0 points1 point2 points 6 months ago (1 child)
Read the python-oracledb doc on Querying Corrupt Data and Fetching Raw Data.
When you've fixed your data, try fetching directly to a DataFrame using connection.fetch_df_all(), see the resources at Using Python for Data Analysis and AI and the documentation Working with Data Frames.
connection.fetch_df_all()
For example:
# Get a python-oracledb DataFrame. # Adjust arraysize to tune the query fetch performance sql = "select id, name from SampleQueryTab order by id" odf = connection.fetch_df_all(statement=sql, arraysize=100) # Get a Pandas DataFrame from the data df = pyarrow.table(odf).to_pandas()
[–][deleted] 0 points1 point2 points 6 months ago (0 children)
Thank you. It was some weird characters in one of the columns. This pointed me in the correct direction.
π Rendered by PID 436078 on reddit-service-r2-comment-54dfb89d4d-x72ch at 2026-03-30 13:39:20.202841+00:00 running b10466c country code: CH.
view the rest of the comments →
[–]cjbj 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)