Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: How to handle None with mysql.connector
Post: RE: How to handle None with mysql.connector

Thanks for the reply. The problem is that mysql.connector doesn't convert None or empty string to NULL so here is how i did it: data = None or "NULL" conn = cnx.cursor() conn.execute("insert into cont...
verb General Coding Help 2 12,755 Nov-16-2018, 09:04 AM
    Thread: How to handle None with mysql.connector
Post: How to handle None with mysql.connector

Hello everyone, Can anyone advice how to handle empty string or None when insert data in mysql integer column. Here is the code i have: import mysql.connector cnx = mysql.connector.connect(user='user...
verb General Coding Help 2 12,755 Nov-16-2018, 07:54 AM
    Thread: how to use pyexcel to read ods
Post: RE: how to use pyexcel to read ods

for less then 30sec this code eated more then 4GB of ram :) do you have any proposals on how to read single row from this file ?
verb Data Science 6 10,057 Oct-15-2016, 09:39 AM
    Thread: how to use pyexcel to read ods
Post: RE: how to use pyexcel to read ods

i have copied it from ide don't know what went wrong with formating :)
verb Data Science 6 10,057 Oct-14-2016, 11:12 AM
    Thread: how to use pyexcel to read ods
Post: how to use pyexcel to read ods

Hello everyone I have posted this on the previous forum but didn't resolve this issue. I  have big ods file ( HERE ) and i am trying to read only some parts of the file for example first row but wha...
verb Data Science 6 10,057 Oct-14-2016, 10:16 AM
    Thread: unable to call function in Flask
Post: RE: unable to call function in Flask

i have found the solution of my problem here is the code from flask import Flask,render_template from os import listdir from os.path import join,isfile app = Flask(__name__) def ask_for_dir():    ...
verb Web Scraping & Web Development 5 18,420 Sep-29-2016, 01:59 PM
    Thread: unable to call function in Flask
Post: RE: unable to call function in Flask

so there is no way to ask the user in console and pass this value to flask ?? I want to do it this way because when i start the app i will pass the dir where the app will browse,also it's more friendl...
verb Web Scraping & Web Development 5 18,420 Sep-29-2016, 06:13 AM
    Thread: unable to call function in Flask
Post: unable to call function in Flask

Hello everyone i am trying to call function from another function but unfortunately it doesn't work here is my code... The app starts and it doesn't ask for dir name as i was expecting from flask imp...
verb Web Scraping & Web Development 5 18,420 Sep-28-2016, 07:38 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020