Posts by Bruno Ramos • 136 points
7 posts
-
0
votes3
answers1128
viewsA: Modulenotfounderror: No module named 'sklearn.externals.Six'
By error message the module mglearn use that one script, who needs the sklearn.externals.six, whereas the sklearn.externals.six was taken from sklearn in version 0.21.0. To use the mglearn you need…
-
1
votes1
answer464
viewsA: How to group a column containing a list in pandas? - Python3
You can use the method explodes () from pandas 0.25.0 , for your case: qtdgeneroyearv2.explode('genres') applying the explode and then grouping: qtdgeneroyearv2.explode('genres')[['genres', 'year',…
-
0
votes1
answer1058
viewsA: Rename columns nuḿericas in Pandas
You can specify the excel row that will be the name of the dataframe columns as follows: pd.read_excel('tmp.xlsx', index_col=0) more information on : pandas.read_excel just modifying, for your case…
pandasanswered Bruno Ramos 136 -
2
votes1
answer53
viewsA: How to delete repeated names with loaded values?
It depends a little on how you receive this json by php. Admitting this json: [ {"Animal": "Leão"},{"Animal": "Leopardo"}, {"Especie": "Aves"},{"Especie": "Mamiferos"}, {"Especie":…
-
2
votes1
answer1066
viewsA: Pandas Excel Writer
This is a bug xlsxwriter, try to upgrade the package to at least version 1.1.4. Anaconda commands: conda update xlsxwriter or with Pip: pip install --upgrade xlsxwriter…
-
0
votes1
answer123
viewsA: How to remove background using python and cv2?
Chris Albon explains this process well, for your case you must specify a rectangle that will cover the image as for example: Using the following rectangle: rectangle = (121, 66, 158, 493) I got this…
-
1
votes1
answer103
viewsA: Import JSON data between Python files
In part import teste nothing will happen because your function run() has not been called. You can do so: from teste import run teste.run()