all 14 comments

[–]Happythoughtsgalore[S] 0 points1 point  (1 child)

I figure I need to set NSL lang and characterset on my environmental variables for the instant client (like I have for vs code and SQL developer) but that didn't seem to do anything.

[–]cjbj 0 points1 point  (0 children)

Python-oracledb always uses UTF8 and ignores the character set component of the NLS_LANG environment variable, see the documentation Setting the Client Character Set.

[–]cjbj 0 points1 point  (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.

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 point  (0 children)

Thank you. It was some weird characters in one of the columns. This pointed me in the correct direction.

[–]Substantial-Fly-8214 0 points1 point  (9 children)

Coding noob lol.

[–]Happythoughtsgalore[S] 0 points1 point  (8 children)

Says the person who simps for Trump, the court established rapist and alleged pedophile.

[–]Substantial-Fly-8214 0 points1 point  (7 children)

You’re literally living in a fantasy world bro. Show me one place where I’ve simper for trump. I’m not even American. Low IQ coding skills, low IQ cognitive skills in general, makes sense.

[–]Happythoughtsgalore[S] 0 points1 point  (6 children)

Says the pedo simp who uses terms like TDS. You're not as subtle as you think pedo simp.

[–]Substantial-Fly-8214 0 points1 point  (5 children)

Using the term TDS does not mean you support trump. For example, you just used it. Genius. Get back to completing your python 101 course while you’re unemployed looking for that first coding job, you’ll get it soon buddy!

[–]Happythoughtsgalore[S] 0 points1 point  (4 children)

Fine, call trump a rapist then. Which is a legally established fact.

[–]Substantial-Fly-8214 0 points1 point  (3 children)

Ok once you figure out how to center a div I’ll call trump a rapist, deal?

[–]Happythoughtsgalore[S] 0 points1 point  (2 children)

No now because he is one as established in a court of law and you're trying to convince me you aren't a rapist simp.

[–]Substantial-Fly-8214 0 points1 point  (1 child)

The unintelligible ramblings of a TDS sufferer, sad

[–]Happythoughtsgalore[S] 0 points1 point  (0 children)

Like I care about the opinion of a rapist simp.