Questions tagged as 'python-3.x'

0
answers

index 0 is out of bounds for axis 0 with size 0

I have imported all the necessary libraries, I want to pass it to FFT and this is my code (I have already declared the fixes and put the address where you will extract everything from): #k=f12.size+f24.size k=(f12.size+f24.size)*100 tp1...
asked by 08.12.2018 / 22:57
0
answers

insert the value of a variable in a panda dataset

I happen to have the following dataset in which I must insert the title column (which must contain only Mr, Mrs, Miss, as the case may be) between the survived and name columns, I did it in the following way: otra=data_tres['name'].st...
asked by 03.12.2018 / 23:05
1
answer

Browse folders and subfolders python

I want to perform a small function to move all files that are ".mp3" to a folder. For this I have thought to go through all the folders and subfolders in a given direction, and what has occurred to me is the following: def catch(dir_name):...
asked by 02.01.2019 / 17:33
0
answers

how to make an extension of values in a list without modifying the other python

The problem I have is that in a list that believes a merger of two lists with dictionaries, I repeat the records then what I'm doing is that I verify which are repeated to put the missing values in the first in the first record, but when doing t...
asked by 30.11.2018 / 20:59
0
answers

module compiled against API version

I tried to run a python project with Rasa, but unexpectedly I had two errors that puzzled me: some failed to import message because module compiled against API vesion and other Python has stopped working . It's the first ti...
asked by 26.11.2018 / 21:21
1
answer

install netcdf in python windows

I would like to know how to install the netcdf library in python, in Windows. I never installed a bookstore there, so I would like to learn how to do it. Regards, Florence.     
asked by 26.11.2018 / 17:12
0
answers

Delete row in Treeview with Psycopg2 and not all records

Good afternoon I'm trying to delete a row, in Treeview (Tkinter) in Postgresql database (Psycopg2). But I deleted all the records and I can not get it to apply for a single row, I have tried with% or% s, among others. I would appreciate the coll...
asked by 23.11.2018 / 23:36
1
answer

PyQt5 Error connection to Mysql "Driver not loaded"

I did not manage to solve this error that appears to me when trying to connect to a Mysql database with PyQt5 Instruction used: from PyQt5.QtSql import QSqlDatabase, QSqlQuery, QSqlTableModel from PyQt5.QtWidgets import QTableView, QApplica...
asked by 23.11.2018 / 15:27
0
answers

problem with functions in python

Friends I have a problem with this code can help me always tell me that counter is 0 and therefore tells me that the digit is not in the vector this is my code: #-*coding:utf-8-*- ''' Construir una función que reciba como parámetros un vector...
asked by 22.11.2018 / 23:05
0
answers

Validate strings in an iteration - simulation production process - python

This is a simulator of a line of manufacture of an article. The production line has a process of arrival, painting and assembly, it also has a timeline in minutes. In the arrival process, I generate a random number and assign a probability tha...
asked by 21.11.2018 / 03:55