Posts by Thiago Benevides • 43 points
7 posts
-
-2
votes1
answer147
viewsQ: Turn a list into a python pandas csv
I have the following code that scraps data from an auction site: lista = [] for pagina in range(1,34): url =…
-
-1
votes1
answer52
viewsQ: Break a list and create lists
hello! I have the following list in python of numbers: ['1','2','1','2','3','4','1','2','3','4','5','6','7','1','2','3','4','5','6','7'] And I want to break that list and create other lists in such…
-
2
votes2
answers1707
viewsQ: Brazilian calendars using Pandas-python
How do I import the holiday calendar from Brazil using the pandas library in python. For example, if I use the following code: from pandas.tseries.holiday import * feriados=…
-
0
votes1
answer79
viewsQ: Challenge in python. Doubt
The challenge: to receive a string s and an integer k, then you must separate the string into sub-strings of length s/k and finally remove the repeated letters in each sub-string. Follows the code:…
pythonasked Thiago Benevides 43 -
0
votes1
answer31
viewsQ: Problems using iloc pandas
I want to create a new DataFrame with the following condition: marvel.loc[ marvel['Orientation'] != 'NaN' ] I mean, I want every line that has the column 'Orientation'== 'NaN' are deleted, but there…
-
0
votes1
answer87
viewsQ: I believe it’s an overflow mistake
I created two arrays as follows array1=np.arange(1000000) array2= np.arange(1000000) and when I did the following operation: array1*array2 I got that answer: array([ 0, 1, 4, ..., -731379964,…
-
1
votes0
answers71
viewsQ: Drawing in the middle of the screen with the android canvas
How to draw in the middle of the screen, in all the attempts I made I could just stretch the drawing and not move it to the center of the screen. public class Carta { private static int…