Posts by Hugo Azevedo • 61 points
4 posts
-
0
votes1
answer106
viewsQ: Cycle gives results Nan! How to get real values?
One of the parts of my script aims to determine the area of a graph by trapezoid approximation. Within the class I created the following function that manipulates the self.df, which is a Dataframe…
-
3
votes3
answers16319
viewsQ: Convert from string to list?
I needed to pass a string of the kind: 0.4350 0.8798 0.0099 1 for a list [0.4350, 0.8798, 0.0099, 1] with a script simple. How can I do it?…
-
1
votes3
answers4236
viewsQ: How to open . txt files in Python?
I want to open a. txt file for reading but python always gives error, want to use f = open('ficheiro.txt', "r") or f =open('C:\...(diretório)...\ficheiro.txt', "r") I’ve already created files from…
pythonasked Hugo Azevedo 61 -
1
votes2
answers2406
viewsQ: txt file for python list
I have several files with values of the form: 0.4350 0.8798 0.0099 1 0.4375 0.8674 0.0090 1 0.4400 0.8682 0.0082 1 How do I load these Python files in the form [[0.4350, 0.8798, 0.0099, 1], [0.4375,…
pythonasked Hugo Azevedo 61