Questions tagged as 'python'

0
answers

What facebook user data is accessible through the api of it only with an application access token?

I'm participating in a project in college and I need to use facebook's api to try to collect some data from facebook users, but I've already faked the api documentation a lot and I still do not know what data I can access using an access token o...
asked by 04.05.2018 / 23:27
1
answer

operation with vectors

I have two m1 and m2 variables that change each set of data I import and a vector (measures) with the values, I need to see if the vector values are greater than M1 or smaller than M2 and exclude them if they are. And list them to see wh...
asked by 01.05.2018 / 00:35
0
answers

Execute javascript code on page only when redirected - DJANGO

Good afternoon guys, how are you? There goes my first question! I've been learning Django for less than a month, I'm doing a practical project, this project is a login screen. It already works perfectly, user puts the right password, it goes...
asked by 08.05.2018 / 22:15
1
answer

Problem inserting rounds in stone, paper and scissors game

Good morning, I am not able to implement a rounding system in this game, the rounds should change when the player's Mao empties. , what happens now is that when the player and player list 2 are emptied the game continues to run with it empty, bu...
asked by 04.05.2018 / 16:59
1
answer

My inserts are not being saved

I installed a postgres cluster using pgpool on docker containers, link . I can connect to pgpool and make insertions and other normal sql commands. psql monkey_db -h localhost -U monkey_user -p 5430 But when I try to connect the da...
asked by 26.04.2018 / 17:34
0
answers

IDLE software locks with encoding

I have developed a program that, for your use, automatically creates another program on the user's Desktop. In order for the second to run in CMD or IDLE directly, it is necessary to convert the cp1252 encoding to utf-8. For this I followed a St...
asked by 27.04.2018 / 02:56
0
answers

"None" instead of [1,1,1,1]

I'm doing a problem that works like this: For example, suppose a team of 4 telemarketers should make 6 calls, whose times are 5, 2, 3, 3, 4, 9. As initially no salesperson is busy , the first seller will make the 5-minute call, the second-seller...
asked by 06.05.2018 / 16:23
0
answers

Using the Geopy library

I have the following question, I want to set up a routine to perform iterations within a dataframe (pandas) to extract longitude and latitude data, after supplying the address using the 'geopy' library. The routine I created was: import tim...
asked by 25.04.2018 / 19:36
0
answers

If and Else in Python Commands

How do I check if a command was spelled correctly or not? For example, if the user enters a command that does not exist, it will display a warning message, otherwise it will execute the command. I built the code partially and tried with if...
asked by 24.04.2018 / 14:04
1
answer

How to make a function that takes data and releases in bot chat

Good afternoon I have a bot for a site where I go and wanted to develop a function where it sends a private message in the system. In my head it seems simple but I can not execute (I know the code is wrong but that's how I imagined it). I'm a...
asked by 22.04.2018 / 18:58