Questions tagged as 'python'

1
answer

Read CSV file, Columns [duplicate]

I would like to know how to read a CSV file by taking the first and second column and compare the string contained in it with another string I want in the code. Eg: if(o conteudo do csv coluna 1=="positivo" && conteudo do csv colu...
asked by 25.07.2017 / 20:04
1
answer

How to use the two versions of anaconda in linux?

Good afternoon guys, I'm studying python for projects and I was recommended to use the anaconda package. I am a linux user (ubuntu) and therefore installed the two packages on my system. Currently in the college project, we are working with data...
asked by 23.07.2017 / 18:40
3
answers

Python does not return files within a directory

Good night I'm new to Python programming but I created this code using os.listdr and did not return any results from the files inside the folder. If anyone has any idea how to solve thank you very much. follow the code: import os def rename_f...
asked by 27.07.2017 / 00:15
1
answer

How to run a .py program from python IDLE in Windows?

I'm learning to program in python and I made a small program, but I can not execute it through the terminal (IDLE or sheel) of python program name: salario_real.py error     
asked by 01.07.2017 / 23:23
2
answers

Feed parsing in Python

Access a feed whose layout looks like this: <horoscope> <date>20170627</date> <listItem> <item> <signTitle begin="21/03" end="19/04">Áries</signTitle> <content> BNononononono...
asked by 27.06.2017 / 15:09
2
answers

How do I read two columns from a .dat file in Python?

I have a .dat file with the following numbers: 34875 70.9300 -8.6700 54872 80.0500 16.2500 65456 77.0000 -5.5000 78787 78.2500 22.8300 20890 -8.9200 11.9300 87859 78.2500 15.4700 89556 80.6700 25...
asked by 18.08.2017 / 19:21
1
answer

How to select Python 3 in Visual code

I have already installed the Python extension in VSCode but want to know how do I recognize the Python 3 synthase?     
asked by 23.06.2017 / 02:06
3
answers

Print element from a specific position in the list

I need to make it print the number of days in August in the list, but without using the: def how_many_days(month_number): """Returns the number of days in a month. WARNING: This function doesn't account for leap years! """ days_i...
asked by 22.06.2017 / 16:55
1
answer

How to make program in Python run in 32 and 64 bits

I have a program made in Python (3.5) under 64-bit operating system, is it possible to have it run in 64 and 32-bit in windows? NOTE: I used Pyinstaller to compile the program to run on windows machines that do not have python installed.    ...
asked by 03.07.2017 / 01:13
1
answer

Django returning ValueError

I am creating a project to send emails, however I am doing some tests and I came across the following problem:    The view send_mail.core.views.index did not return an HttpResponse object. It returned None instead. Below are my lines of c...
asked by 17.08.2017 / 18:49