Questions tagged as 'python'

2
answers

Python Build a multiple-column graph with matplotlib

I'm trying to make the chart with multiple parabolas. It's more of a help in mathematics.     
asked by 17.09.2018 / 13:44
0
answers

Problems with input data in neural network with scikit learn

I would like to create a neural network that returns 1 (one) for a specific case and 0 (zero) for all the others. The idea would be: import numpy as np import pandas as pd from sklearn.preprocessing import MaxAbsScaler from sklearn.neural_n...
asked by 22.08.2018 / 01:19
0
answers

Using Python to Extract Equations, Figures, and Other LaTeX File Items

I'm on a personal project that involves leaving an article written in LaTeX as clean as possible for sending the translation. In order to increase my productivity, avoid problems of information leakage and make it easier for the translator,...
asked by 01.10.2018 / 00:03
0
answers

How to interpolate elements of an array in python?

Good afternoon, guys! I am new to python and am tempted to interpolate values between two columns of a rectangular array. Initially I created an array of zeros (nx=383 nz=125) . Then I filled in the array at nx=5 and nx=380 ....
asked by 29.09.2018 / 18:03
0
answers

Kivy using raspberry pi 3

I'm using the HDMI output of Raspberry Pi 3 . Using a Python code that opens a Kivy window, this window fills the entire screen and overrides everything else (open windows, mouse pointer ). ..). Apparently it ( rasp ) responds to the comman...
asked by 19.09.2018 / 13:53
0
answers

How to reduce the instruction block inserted inside an if conditional structure in python?

Hello, I'm developing a program that calculates and sizes wall-beams. It basically works with security checks (request less than or equal to resistance), when one of these checks is not met, the program will alert the user to the error and then...
asked by 14.08.2018 / 23:15
1
answer

Error List index out of range

I'm developing a quiz with Python and I'm having a problem that I think is simple but I can not solve it. When the person completes the quiz the message that was to appear does not appear and gives an error: Traceback (most recent call...
asked by 20.08.2018 / 17:31
1
answer

How to customize the x-axis of a graph with two axes and for text?

I would like to know how to change my x-axis of a graph with two axes y, since I want to assign the x-axis names of Brazilian states to the x axis. numpy_matrix = df.as_matrix() x = numpy_matrix[0:,0] y1 = numpy_matrix[1:,1] y2 = numpy_matrix[...
asked by 08.08.2018 / 17:57
0
answers

Functionality Bhaskara Calculator in PYTHON

Hello, I'm still a student and would like to know if some way to make it more compact is Bhaskara's calculator that I did. I would like one that would show all the steps as it does. print('BHASKARA SOLVER') print('Ax² + Bx + C = 0') while True...
asked by 07.08.2018 / 22:58
0
answers

how to capture specific tokens in python requests

I need to catch specific cookies from a python code and pass them on afterwards, the problem is, if I set the cookies manually they work for a while but after a few days they expire. I can get a recursive token with the cookie = requests.cookies...
asked by 09.08.2018 / 15:58