Posts by Matheus Rocha • 86 points
5 posts
-
1
votes2
answers116
viewsA: Optimization through dataframe (Pandas)
Dude, there’s a really good library for big but little-talked-about Dataframes, it’s called dask. import dask import dask.dataframe as dd Most pandas operations are reproducible in dask. Turns on…
-
0
votes2
answers105
viewsA: Join lines from a Python column
Your second for is unnecessary. I simulated a DF with the same amount of lines here, and gave a medium list with 720 elements. df_t = pd.DataFrame(list(range(0, 43184)), columns = ['column']) media…
pythonanswered Matheus Rocha 86 -
4
votes4
answers167
viewsA: How to return the first vowel of several words in a list?
import re palavras = ('boi', 'vaca', 'macaco', 'ovelha', 'lesma',) for palavra in palavras: try: print('Palavra ' , palavra , re.findall(r'a|e|i|o|u', palavra)[0]) except: print('Palavra ' , palavra…
-
0
votes1
answer225
viewsQ: Error reading file . xls
I have some files to read in Python, I’m using the following structure: df = pd.read_csv(path, Sep=' t') And this generated the following error: Unicodedecodeerror: 'utf-8' codec can’t Decode byte…
pythonasked Matheus Rocha 86 -
1
votes2
answers236
viewsQ: Promises in Nodejs
I’m learning Node and picking up some of the asynchronous programming. To learn, I took the following example console.log("1"); setTimeout(function(){console.log("2");},3000); console.log("3");…