Posts by F. Oliveira • 69 points
5 posts
-
0
votes2
answers195
viewsQ: Recursiveness using Python
I am trying to create a recursive function that takes a positive integer number N and prints all even numbers from 0 to N in ascending order. I’m only managing to do the opposite, that is, print the…
-
3
votes1
answer1343
viewsQ: The Truth value of a Series is ambiguous. Use a.Empty, a.bool(), a.item(), a.any() or a.all()
I am a layperson in programming, in the stackoverflow community and I am not able to solve the following problem: Create two lists (or if you prefer 2 columns in a New Dataframe) in which you search…
-
1
votes2
answers717
viewsQ: Read a.dat file and assign names to its columns using Pandas
How do I assign names in columns using pandas? For example, consider a arquivo.dat in the following format: 3.141592543 3.141592543 3.141592543 3.141592543 3.141592543 3.141592543 3.141592543…
-
0
votes2
answers5464
viewsQ: Segmentation failure: Recorded core image
I made a code in C to find the smallest value and position of it in a vector x[N]. Every time I compile the program by terminal (Linux), it accuses the following message: Segmentation failure…
-
1
votes1
answer952
viewsQ: TXT File Manipulation using Python
Let’s say I have one arquivo.txt which is separating the information only by the comma, for example, X,Y,Z,W 1,2,3,4 How do I modify such a file and save it so that it is a table without the…
pythonasked F. Oliveira 69