Questions tagged as 'python'

1
answer

Python, show index of a specific line within the array

Dear Sirs, Could you give me some help .. an idea?! - > I'm trying to display (print) the index (the line) of the longest range between the largest and the shortest term of the rows of an array they meet. For example: Imagine an arra...
asked by 25.02.2018 / 19:35
2
answers

I can not download pygame

guys, I was trying to download pygame through pycharm but it keeps crashing all the time, does anyone know why? Can anyone help me?     
asked by 24.02.2018 / 19:00
1
answer

How to get the origin of a form in python cgi?

Hello, I'm using python with CGI, for my forms. I need to get the origin to make sure my site is secure, but I have not found any information about it. The only thing I'm doing, for now is retrieving the data that comes via post or via get: #!...
asked by 01.04.2018 / 18:01
0
answers

Roadmap for deploy Pipenv (Python)

Hello, in the company where I work the firewall rules do not allow intranet-enabled servers to have access to the web. This way, working with venvs , where dependencies are installed with pipenv install , is not possible. Is there...
asked by 23.04.2018 / 01:00
2
answers

Color background of row (row) in django admin

I have a code that is working, but not totally with what I want, it is coloring only the selected cell, I want to color the entire line depending on the column's status. <script type="text/javascript"> (function($) { $(document).ready(fu...
asked by 19.02.2018 / 14:46
1
answer

Import CSV to bank Pandas without converting string to tuple

I carry a CSV file with more than 3 million lines and about 770 Mb , I use the pandas and I need to convert a column that is in string format. Below the 'lbBins' column, which when read from CSV came in string format (what is the best default fo...
asked by 08.03.2018 / 19:24
1
answer

Creating a bar chart to compare data

I'm doing the udacity data science course. It's my first contact with programming, so do not judge the silly mistakes haha. I am comparing two data frames with 2008 and 2018 year car information. One of the questions asks to compare the impro...
asked by 31.03.2018 / 16:51
0
answers

(Socket) Client and Server Connection - how to get return from Cmd- Client (Python)

I want to run a command in the client's Cmd and return the values to the server. I've already been able to run the command in the client's Cmd ... Now how do I return the values to the server? The Server: import socket import os Host = "1...
asked by 31.03.2018 / 03:31
1
answer

Training of images in the tensorflow

Good evening! I'm trying to build a neural network in python using tensorflow and its other libraries, my doubt and, I have 4 classes and I need to do a training of them I have many images for each class, I need to use neural network CNN I un...
asked by 21.03.2018 / 01:43
0
answers

How to end process 'chrome.exe' at the end of script execution

I've implemented a script using selenium that accesses a few pages. The code is working exactly as expected. My problem is when script ends its execution which happens in two ways: When the user closes the browser (ChromeDriver) When th...
asked by 28.02.2018 / 18:59