Posts by roger roger • 124 points
10 posts
-
0
votes1
answer1058
viewsQ: Rename columns nuḿericas in Pandas
I imported an Excel file into a f0719 dataframe. Except that Pandas added numbers, which did not exist in the original file, as identification of the columns, instead of the name, which was just…
pandasasked roger roger 124 -
3
votes1
answer80
viewsQ: Integer variable that controls the loop
I’m asking the fifth question of this exercise: Question 5: Given a list of ints, Return True if first and last number of a list is same The code is down. In it, while the user type an integer other…
pythonasked roger roger 124 -
1
votes1
answer746
viewsQ: Add and subtract according to a criterion in another column
I have a f0519_grouped dataframe like the one in the image. " Unique Identification" is the code that identifies the employee of the others; "Code Item" identifies the payment; I also have the name…
-
-1
votes2
answers194
viewsQ: Raising fraction to power
I need to raise a number to a certain expoente, but I don’t know how to do it in case frações. For example, I know that to raise 2 to terceira potência, I must do 2**3. But if I want to raise 1/2 to…
-
1
votes2
answers577
viewsQ: Group three commands into one
My dataframe is called f0219. The following command filters a column of this df called Typorubrica when the code is equal to 2; this filter is assigned to the variable f0219Teto; Then, another…
-
0
votes0
answers130
viewsQ: float64 in the Pandas
I have a table 'f0219' with a column 'Value'. Originally, value is like Object. I use the following command to convert it to float. f0219['Valor'] = pd.to_numeric(f0219['Valor'], errors='coerce')…
-
0
votes1
answer170
viewsQ: Data js in html(external script)
I have the following script that returns date and time: function RetornaDataHoraAtual(){ var dNow = new Date(); var localdate = dNow.getDate() + '/' + (dNow.getMonth()+1) + '/' + dNow.getFullYear()…
-
1
votes1
answer360
viewsQ: Date calculation: today’s date, new date() and date extracted from Googlespreadsheets
I’m trying to subtract two dates. Today’s date, using the new Date(), and a date from a googledocs(photo) spreadsheet. Column F that stores the dates of googledocs is in the dd/mm/yyyy date format.…
-
4
votes1
answer1351
viewsQ: Toast materialize
I am trying to implement a Toast (code below), however, there is no result when clicking the button. I don’t know what I might be doing wrong. <div class="row"> <button id="btn"…
-
0
votes1
answer353
viewsQ: Page alignment css materialize
I’m using materialize as a framework for an application. I’m having a little problem with its interface. I cannot make the table that displays the data from the database (a gdocs spreadsheet),…