Skip to content Skip to sidebar Skip to footer

I Get TypeError: Cannot Use A String Pattern On A Bytes-like Object When Using To_sql On Dataframe Python 3

Hi I am trying to write a dataframe to my sql database using df.to_sql however I am getting the error message: TypeError: cannot use a string pattern on a bytes-like object. I am u

Solution 1:

I found the answer. I installed an older version of sqlaclhemy 0.7. After updating it to the latest 1.3.18 version, the error was gone.


Post a Comment for "I Get TypeError: Cannot Use A String Pattern On A Bytes-like Object When Using To_sql On Dataframe Python 3"