Posts by helena • 53 points
12 posts
-
0
votes0
answers34
viewsQ: code::Locks not copying Ubuntu 20.04.2?
I use Ubuntu 20.04.2 and have always used Visual Studio Code to program. However, in the c language, I need to use the <Allegro library. h>, and then I need to use the code::Blocks. However, I…
-
1
votes1
answer237
viewsQ: Error "Exception in thread "main" java.lang.Arithmeticexception: / by zero" in java
I’m trying to solve an exercise, but it keeps going wrong. I wonder if someone could help me? public class mod_IV_ex_1 { static int fatorial(int numero){ int fatorial = 0; if (numero == 0) {…
-
0
votes1
answer212
viewsQ: Page in landscape, not figure
I’m creating a file in latex, and I need one of the pages to be in landscape, because it has several figures. However, only the figures are getting into landscape, and not the page itself. I’m doing…
-
-1
votes1
answer90
viewsQ: Indexerror: list index out of range with csv data?
I tried two codes, but both generates the error: IndexError: list index out of range I want to score points on the world map, of drift buoys. This data is in a csv file, with the lat and Lon column…
-
1
votes1
answer93
viewsQ: Adding an area shaded over a Plot in the R?
I’m making some graphs using R, and I need to make a highlight (shaded area in a given location), but I can only plot. Follow the image I can generate: The highlight has to be a rectangle that goes…
-
0
votes1
answer81
viewsQ: Delete a range of values in python
I have a code that eliminates values as needed, but I’m not able to put an interval to delete or keep the value. For example, I want values between 7:00 and 5:00. If you put values greater than 18h,…
-
0
votes1
answer19
viewsQ: dtype error on file merge
I need to join several csv files, where the columns are float. I made a small code, but the output of the columns are in str, so I tried to add the output format of the data, but the following error…
-
0
votes3
answers4131
viewsA: Join columns in python?
I got it here. csv_date_list.append(str(int(rows[" yyyy"]))+str(int(rows[' mm'])).zfill(2)+str(int(rows[' dd'])).zfill(2)+str(int(rows[' hour']))+'0000')
-
1
votes3
answers4131
viewsQ: Join columns in python?
Hello. I have this file (filing cabinet) where I need to merge the columns yyyy, mm, dd, hour (year, month, day and hour) into a single column, and stay in this format 20180101010000, conclusion:…
-
0
votes1
answer2959
viewsQ: Save csv files to Python after making changes?
I am making some changes to multiple csv files at once, and would like to know how to save the output to a single file. import pandas as pd dataset =…
-
0
votes2
answers172
viewsQ: Delete a row and column range in python?
Hello. I want to delete rows and columns from a csv file, and just keep the lines in the 15212 to 21777 range, from a file with more than 23,000 lines. The columns I managed to delete in the way I…
-
1
votes0
answers44
viewsQ: How do I remove certain lines from a csv file in Python?
I have a csv file, which contains several lines. Does anyone know what I should do to save to a new document, with some specific lines? One of the columns, 'yyyy', has data from 2015 to 2019. I…