Questions tagged as 'python'

1
answer

Sending files via sockets - Python

I am studying sockets, using Python, and tried to make a script to send (Server) and receive (Client) files through sockets. However the script does not work as expected, the final file (received by the Client) always lacks a few bytes and some...
asked by 12.07.2017 / 21:59
1
answer

Division between row and column values using pandas

I created a pivot table containing some values, but I do not know if it is necessary to use pivot table in this case below a sample of the results: Valor ajuste \ Data posicao 2017-05-3...
asked by 29.06.2017 / 22:58
2
answers

Python / Pandas - How to create a data frame that contains the original line and the duplicate line

In a data frame that contains two lines with Country = India, I was able to create a data frame without duplicity with only one line in India A data frame only with the duplicate line I need to create a data frame that contains only the two line...
asked by 29.06.2017 / 16:26
1
answer

Dictionary exercise

I can not solve this exercise. I need the letter that indicates the type of service (E, R or F) to be indicated in the same line as the other information, however, according to the inserted letter, the information requested is different, I do no...
asked by 06.06.2017 / 17:56
1
answer

Can I automatically run a Python program outside my computer?

Good morning, I've done a Python script that searches the various websites for the occurrence of some words and stores them in SQL database. I would like to track the occurrence of these words over time, but I do not want to be left clicking to...
asked by 06.06.2017 / 10:32
2
answers

Decimal to hexadecimal conversion

I need to make an algorithm in python to make a converter from decimal to hexadecimal. But I can not use ifs nor ready functions, like hex (). I did, but when I was printing the value in hex, I used print ("% X"% h) to print the letters without...
asked by 30.06.2017 / 22:40
1
answer

Select an option from the drop down menu Selenium Python

I have a menu that has several options, I want to select only the one that is active. When I give 'variable'.find_element_by_id (' key ') Selenium returns me ALL options. Does the active option have a "selected" marker, as I point to this seleni...
asked by 13.07.2017 / 19:52
1
answer

Makefile does not work on MINGW64. Can someone help me?

I'm programming in python in Django with Sublime Text 3, using Git Bash MINGW64. I created the makefile but when I run I get "bash: make: command not found"     
asked by 31.05.2017 / 05:10
1
answer

Error compiling Caffe / Pycaffe

I'm trying to compile Caffe on an Ubuntu 14.04, but I still get the following error: /usr/bin/ld: cannot find -lboost_python-py35 /usr/bin/ld: cannot find -lpython3.5m collect2: error: ld returned 1 exit status make: *** [.build_release/lib/li...
asked by 16.06.2017 / 16:25
1
answer

Removing elements from a list in Python [duplicate]

Basically I want to remove elements from a list by one criterion. For examples: I have a room with N students, I will store those students' note in a list and compare these notes with the cut note that I type. If the student's grade is greater...
asked by 29.05.2017 / 04:34