Questions tagged as 'python'

1
answer

How to run this script in a more sophisticated way?

Good morning. I am using this code to update the firmware of my company's servers. However, I wanted to use this same code to update a list of servers, not just one. Follow the original code: #!/usr/bin/python from paramiko import SS...
asked by 06.09.2018 / 11:23
1
answer

Rank the indexes of a list in Python 3

For example I have a list [6,4,3,9,1] The answer to this would be the index of the highest value of this list in order of example for the list above [1,3,2,0,4] These are the indexes of the places where their indexes are, so I've done...
asked by 01.09.2018 / 23:25
1
answer

How to find repeated character blocks within a string?

I am doing a college job and in order to continue I need to get a message that has been given and find out if there are repeated character blocks within that message and what the block is. Example: message = banana; I know it has a block of char...
asked by 06.10.2018 / 15:35
1
answer

Plotting circles on different planes

I need to plot circles in the zy and zx planes, but I can only plot in the xy plane, because by changing the variables x, y and z, I forget the shape of the circle. How can I fix this? import numpy as np from matplotlib import pyplot as plt im...
asked by 04.10.2018 / 01:57
1
answer

Get value from several Entry Python

The idea is that the user type the number of rows and I create the entries according to this amount, this I was able to do, what I can not get is the value of these entry with get (). y1=0 lista= [] while y1 < x1:...
asked by 21.07.2018 / 23:06
1
answer

Know if client is connected to the server

I have a client and a server connected through the socket module in python3, server side I know when the client connects, but on the client side I have no messages when the client connects and would like to have this information on the side of t...
asked by 27.07.2018 / 13:32
1
answer

Amount in a dataset [closed]

I own this dataset Iwouldliketocounttheinstancesof'DATA_CRIA'inrelationtothisotherdataset To do this I did this, but it did not work: lista = [] for ano in anos: lista.append(oni['DATA_CRIA'].count() print(lista)...
asked by 09.08.2018 / 18:35
1
answer

Looping no request

How can I make a looping to bring request information from a list of coordinates of a csv and take the result to another csv? import requests import pandas as pd parametro = dict(latitude=-23.512294, longitude=-46.667259, status=1, lista=1, l...
asked by 05.12.2018 / 13:56
1
answer

Mining in Python (prediction using csv)

I'm now starting to program in the Python language and I'm studying data mining with artificial neural network. What should I do to make predictions from a .csv file? Then how do I save the results in another table? import numpy as np impor...
asked by 11.11.2018 / 21:12
1
answer

How to initialize this PhotoImage function from tkinter?

In addition to importing tkinter, as I call the function, for example: _show (?, 'the title'), what do I put in the first variable that is image? Show an example if it's on the desktop.     
asked by 15.11.2018 / 07:55