Questions tagged as 'python'

1
answer

Python 3 - How to extract message from an email [pending]

I have this code to extract messages from an email, but the output shows the message and some encrypted information. I need help getting the message. In another version of the code, I tried the imaplib library but I was unsuccessful because...
asked by 03.08.2017 / 18:08
1
answer

Removing row of NaN values from a DataFrame

I joined two tables through the command pd.concat and I came across the problem of having multiple NaN values. It turns out that there are missing values in one of the dataframes. To facilitate my study of Data Science I want to remove...
asked by 22.08.2017 / 03:39
0
answers

ValueError type error in Learn Python the Hard Way

When I try to run the programs in Learn Python the Hard Way, I'm having problems with the following line of code (understand names as generic parameters): nome, nome, nome = argv In different exercises I tried to do the following: (nome,...
asked by 28.07.2017 / 23:38
3
answers

How to create a "* .exe" executable in python?

I need to turn ".py" files into ".exe" executables to run on any Windows desktop. Currently use 3.3     
asked by 24.04.2014 / 04:27
1
answer

Text Mining with Scikit-learn

I'm doing some research in the area of feelings analysis, so I'm doing some testing on a text database to get results. I was looking for tutorials among other forms of information on the internet and I came to the conclusion that the scikit libr...
asked by 30.07.2017 / 13:20
1
answer

Opening Shell script in Python

I'm automating tasks and I'm new to Python, so I'd like your help because I need to run a Shell script on another machine and this command I need to give inside a Python code. I thought about using something like: #!/usr/bin/python # -*-...
asked by 01.08.2017 / 07:37
2
answers

Web2py - Error when using SQLFORM.factory ()

I can not resolve an error that appears when I try to expose a form to two tables of SQLite . The error is as follows:    Traceback (most recent call last):         File "/home/joao/Desktop/web2py/gluon/restricted.py", line 219, i...
asked by 24.07.2017 / 21:53
1
answer

Query in public database

I need to query in an online database, and transform the returned data into a data frame. I used an existing example on the database website, but I have no idea how to turn it into a database. The example looks like this sample: import u...
asked by 31.07.2017 / 15:24
1
answer

Python 3: Attribute Types

I'm new to python. As you all know, I do not have to speak the type when declaring a variable, and that's interesting, but when I create a function, I can not restrict attribute types, so by doing this: def x(a, b): return a + b I can n...
asked by 15.07.2017 / 00:45
0
answers

Error in Django - Unicode Decode Error

When trying to create an App in Django with the command django-admin.py startapp Name , this command raises the following error: Traceback (most recent call last): File "manage.py", line 22, in <module> execute_from_command_...
asked by 12.07.2017 / 19:54