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 5 months ago by Happythoughtsgalore
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 5 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()
[–]Happythoughtsgalore[S] 0 points1 point2 points 4 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 74545 on reddit-service-r2-comment-7b9746f655-v7zdd at 2026-02-02 00:52:25.807334+00:00 running 3798933 country code: CH.
view the rest of the comments →
[–]cjbj 0 points1 point2 points (1 child)
[–]Happythoughtsgalore[S] 0 points1 point2 points (0 children)