Posts by Beatriz Benz • 61 points
5 posts
-
1
votes2
answers334
viewsA: Return the index of a row with the min function in Python
Try using the function np.argmin as follows: import numpy as np for (x, y, l, a) in facesDetectadas: # Recortar a região do rosto redimensionada em 200 x 200 rosto = cv2.resize(frame[y:y + a, x:x +…
-
1
votes2
answers1709
viewsQ: Modulenotfounderror: No module named 'wordcloud'
I’m using the Microsoft Azure with Jupyter notebook and I need to use the word cloud. However when executing the code: from wordcloud import WordCloud it presents the error No module named…
-
1
votes1
answer190
viewsA: Attributeerror: module 'plotly.validators.layout.template.data' has no attribute 'Isosurfacesvalidator'
I discovered I was making this mistake for a simple reason. I had to have Node.Js installed on my machine in order to run this code on Anaconda / Jupyterlab. Step 1: I downloaded Node.Js through the…
-
1
votes1
answer190
viewsQ: Attributeerror: module 'plotly.validators.layout.template.data' has no attribute 'Isosurfacesvalidator'
I have an interactive graph in python. The code below works in Azure Notebook, but I had to migrate my code to Jupyterlab and it shows the following error: Attributeerror: module…
-
2
votes1
answer834
viewsQ: Python - Count values within another count of values in a dataframe?
I have a df as follows and I need to make a top 10 of the most repeated words in problem and within these selected words do the same within the solution. Obs: the dataframe has more than 20,000…