Questions tagged as 'python'

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
1
answer

Load Dataframe in the background

I have a small tool made in pthon 3.6 in which I use pandas to load dataframes. I want to upload a very large .xlsx file, with about 200,000 records and I use file = pd.read_excel('archivo.xlsx') This takes a long time and leaves the t...
asked by 10.12.2018 / 14:37
0
answers

How do I apply Geopy using a dataframe to convert lat and long to address

I saw this example on the internet: What I want to do is apply that logic but having a df like this:     
asked by 05.12.2018 / 18:42
0
answers

apply dragEnterEvent and dragLeaveEvent on a QFrame

I would like to know how I can use the dragEnterEvent event and dropEvent of a QFRame to be able to apply a resize effect on a QFrame. that is to say when positioning the mouse inside the frame it would have a width of 100 and when leaving a...
asked by 05.12.2018 / 02:34
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
0
answers

Microservice database and relationships between them

I'm working on an application on Python using the Flask framework. It is oriented to microservices and each one has its own database. I am currently in the process of creating the models of one of the microservices using Flask-SQLAlchemy. The...
asked by 02.01.2019 / 12:41
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

Problem creating a chat server in python

I have a problem with a chat that I am creating, when 2 clients connect to the server, the first one that is connected is printed many line breaks and when a message is sent it is not printed on the other side, here I leave it the code: clien...
asked by 02.12.2018 / 00:43
0
answers

Graphs with Python

As you could implement the idea of the following program with graphs in python, there are codes in it, but I have no idea how to implement it link     
asked by 02.12.2018 / 04:13
0
answers

replace "," by "." in order to treat the quantity as a float

A column called age , which must contain only data int , has 2 fields with values separated by "," the question is that I need to pass that character to "." to be able to work, I leave what I have so far df['age'].replace(',' , '.'...
asked by 30.11.2018 / 20:20