Message from Python discussions

November 2018

— Hi, I'm learning python. Any advice on how can I do DF['colA']=DF ['colA].apply(lambda row : row.replace('original','new')) without getting a warning ? I'm trying DF.loc[:,["ColA"]].apply(lambda row : row.replace('Original','New'), axis = 0) but it's not permanent

Message permanent page


So, python telegram bot lib has a method of downloading files as bytearray... I can use BytesIO to open it and edit it no?

— Well, yeah, like you could with a regular file


— BytesIO(bytearray). But check documentation, don't rely on my words.

— 1) Check your SQL syntax
2) Read rules PythonRules about photos of screen

— No!

— Operational error occured while sqlite3 database cration what can i do

— Please read the rules

— Ok


— Like the error says you have a syntax error