Questions tagged as 'python'

1
answer

How do I enter new data for prediction (text)?

I'm new to Python and new to Machine Learning. I built an algorithm for it to be trained to classify texts. So you can predict in which category a particular text fits. Training and score are working. Now, my question is with regard to new da...
asked by 06.09.2018 / 20:05
3
answers

Separate the result that appears in os.getcwd () to be able to display only the c: \

   Make a program that displays the current directory (of which you are saving your programs), the disk drive used, the system user name, and the current folder. Consider the example below. Tip use the split function. Diretorio Atual =...
asked by 05.10.2018 / 20:06
1
answer

Download linux background files [closed]

I have a python script that downloads about 2000 images, and as my pc is not there those things I'm using a VPS. But when I leave the script running it drops a certain amount of images until the ssh connection crashes. How do I make the images d...
asked by 05.10.2018 / 20:27
1
answer

Python does not insert data into sqlite3

I have the following code: #!/usr/bin/python3 import sqlite3 app = '/backup/app/' bd = app + 'bd/' contato_banco = bd + 'contato.db' contato_tab = (('nome' , 'TEXT'), ('email' , 'TEXT'), ('whatsapp' , 'INT'), ('mensagem' , 'TEXT')) c = 'Enio...
asked by 23.08.2018 / 19:38
1
answer

Is there a list of objects when sending requests in html?

I'm developing a small python (flask) web project for self-learning and came across something I've never faced before. I have a registration form where the fields of an information are dynamic, ie via jquery I can create and delete fields bec...
asked by 16.08.2018 / 22:00
1
answer

Collection of float data of an Entry Widget - Python Tkinter

I am developing a program for civil engineering calculations and I have a problem in the result of a Widget Entry, that same Entry is with you in an if condition as shown in the code below, but when I try to use the value typed in that field, th...
asked by 14.08.2018 / 04:19
1
answer

Problem with pyinstaller + os.getcwd () on MAC OS

After numerous problems with Tkinter and Pyinstaller, I was finally able to make a Unix executable application work normally on the MAC High Sierra. But inside the folder of my application, there is a folder called script, which I use chdir(o...
asked by 13.08.2018 / 18:59
1
answer

Progress Bar - Tkinter

While processing occurs, the screen has to display a progress bar for the user. What is the logic behind this (Python, Tkinter)? How do I make the progress bar appear on the screen while processing is taking place?     
asked by 10.08.2018 / 02:59
2
answers

Error in indexing when separating line information

import pandas as pd import numpy as np import matplotlib as plt df = pd.read_csv('dito_julho.csv') df.head() campanha valor 1 Prospect | 5 dias | Com crédito 2 2 Prospect | 5...
asked by 10.08.2018 / 21:55
2
answers

How to inherit a pygame class?

When I run this code (this is the current integer code, ie only 3 lines): import pygame class sp(pygame.sprite): pass I get:    TypeError: module () takes at most 2 arguments (3 given) I would like to inherit this class to create...
asked by 17.09.2018 / 03:42