Questions tagged as 'python'

1
answer

Error installing textract library with conda

I'm trying to install the TEXTRACT library of python, but the following error is in the form: Can anyone tell me what I can do to resolve this? Solving environment: failed UnsatisfiableError: The following specifications were found to be in c...
asked by 30.11.2018 / 02:29
1
answer

Search and insertion do not work together - Flask

Hello, I'm doing a job that needs to insert values into the database, return them in a table and be able to delete them through Flask. I'm getting to know the tool and I can not find solutions. Getting the insertion on one page and the visualizat...
asked by 31.10.2018 / 22:55
1
answer

How to make a program run inside a pygame window?

I made a window using pygame, and I have a code that wanted it to run inside of it, but I do not know how to do it, if anyone can help I'm very grateful. Here is the window code: pygame.init() tela = pygame.display.set_mode([500, 400]) pyga...
asked by 21.11.2018 / 17:39
1
answer

Copy part of the Dataframe where column is Null or NaN

I have the following question. I have the following sample dataframe: import pandas as pd df = pd.DataFrame({'A' : [4,5,13,18], 'B' : [10,np.nan,np.nan,40], 'C' : [np.nan,50,25,np.nan], 'D' : [-30,-50,10,16], 'E' : [-40,-50,7,12]}) Df...
asked by 22.11.2018 / 20:13
1
answer

Number within a file can be the number within time.sleep?

Is it possible that a number within a file can be the number of seconds of time.sleep ()? Example: time.sleep(temp) #código de leitura e salvamento de dados incluído Complete code: #============<<<código de carregamento de dad...
asked by 15.06.2014 / 00:07
1
answer

How to get the list of site users through the Stack Overflow API?

I need to loop through the Stack Overflow API to generate data for all forum users, but I do not know how users' ids are generated at the time of registration. Does anyone know how user IDs are generated? They are not growing, I think.     
asked by 23.07.2014 / 03:40
1
answer

Return only the name of the file in the view

How do I display only the file name, example RET_PREF_ANAPOLIS ..., removing the path arquivos/ ? models.py:defuser_directory_path(instance,filename):ifinstance.tipo_arquivo.id==1:tipo='RET'elifinstance.tipo_arquivo.id==2:tipo='REM'filena...
asked by 16.12.2018 / 22:30
2
answers

How to handle an address base [closed]

I have a database where the CPF is the PK and there is address information (such as zip code, street address, number, etc.). I would like to find people who live in the same residence, comparing street and number. However, there are situations i...
asked by 18.12.2018 / 01:25
1
answer

Text mining python or r [closed]

I'm trying to extract information from PDF files to popular a table without having to read the PDF. I just can not find any reference to how to do this. I need, for example, to find the authors and date of publication of this article: lin...
asked by 09.10.2018 / 18:50
1
answer

The python programming language can be used together with html

Can the python programming language be used together with html ? If so, how do I make this junction between the two languages?   To my knowledge, to call a file js in hmtl we can do it in 2 ways, writing script...
asked by 06.10.2018 / 13:34