Questions tagged as 'python'

1
answer

Save files to a new python folder

folder = "C:\Users\Martin\Downloads\WL tags" df = pd.read_csv("Tags para Mandar WL.csv", header=0, sep = ",") for i, g in df.groupby('Inventory Name'): g.to_csv(folder, '{}.csv'.format(i.split('/')[0]), index=False) I want to save my cre...
asked by 04.10.2017 / 03:29
0
answers

Beautiful Soup or Selectors in Python

Good morning For my scraping projects I have been using a combination of selenium with beautiful soup. Once the html was converted into plain text, I used .find() and .find_all() to move around the info I wanted. The thing is...
asked by 18.10.2017 / 10:19
1
answer

Relate values from a list with strings written by the user

I am trying to relate values from a list to strings written by the user as in this example: We want the chains written by the user to be related to others we have: work at home and family. we want to divide the chain into separate values and pri...
asked by 23.09.2017 / 16:46
1
answer

cx_freeze creates exe but does not save data in docx or xlsx

I have written a simple application with PyQt4 that performs some calculations. With four pushButtons I save the data, I recover it, I keep it in docx and xlsx format for the project documentation and that a third par...
asked by 20.09.2017 / 17:42
1
answer

Separate string Python, independent parameters

First of all thank you for the attention, and on the other hand I do not think it's so difficult what I'm trying to do, only that I've been stuck for 2 days and I do not know what to do. I have a software to which a script is added. This soft...
asked by 21.09.2017 / 14:11
1
answer

Get pressed key

I have the script that I leave below but it throws me an error when executing it on line 61: from record import record import os class cliente(record): nombre = "" codigo = 0 ultimapelicula = None habilitado = True class pelicula(rec...
asked by 18.09.2017 / 01:07
1
answer

I want to give some variables the value of elements of a sql table in python

I'm new to Python and I'm trying to create a POS application, but I'm left blank, because I do not know how to solve this. I want the variables nombre and precio to have the value of the table productos and save them in a...
asked by 16.09.2017 / 09:40
1
answer

Error when plotting date values with matplotlib [closed]

I'm testing with Pandas and matplotlib. The first column of the Excel are dates, format (dd / mm / yy). Reading the Excel sheet with Pandas presents me: 0 Fecha Valor 1 2017-09-11 00:00:00 44.42 2 2017-09-08 00:00:00...
asked by 17.09.2017 / 17:37
1
answer

Process a TXT to PRN with Python

I have several txt files with information on some payments in txt separated by line breaks and slashes. What I have is this: { #!/usr/bin/env python # Importacion de la libreria necesaria import re #Apertura de archivo fname = raw_input("...
asked by 13.09.2017 / 18:13
0
answers

Make CRUD with Python to SQLite

I'm developing a simple script to download some data to a DB what I have is this: { import sqlite3, time print "Sistema Cargas minutas" print "Version 0.1" conn = sqlite3.connect('db_pagos_minuta.sqlite3') cur = conn.cursor() salir = 's'...
asked by 12.09.2017 / 12:25