Posts by Revolucion for Monica • 159 points
12 posts
-
-1
votes1
answer15
viewsQ: Copy a Mongodb collection using pymongo and paste it into another collection
I want to copy a collection coll to back up a database in Mongodb. So I tried: >>> client = pymongo.MongoClient( ...…
-
0
votes0
answers51
viewsQ: Stack objects as a multiple item selector with html and css
I have a list of words I want to stack in columns to save and use the left place in an html file for a Django project: I’m not very good at web development, feel free to explain to me as a 10 year…
-
1
votes0
answers22
viewsQ: How to extract bold or italic characters from a docx?
Have a docx of articles published in marketing magazines that contain scales and would like to extract them. For example, with the following scale, I would like to get the title: Ten-Item…
python-3.xasked Revolucion for Monica 159 -
0
votes1
answer28
viewsQ: Dynamically merge lines that share the same key into one
I have a Dataframe. I would like to make another column that combines columns whose name starts with the same value in Answer and QID. That is, with this Dataframe exercise: QID Category Text QType…
-
1
votes1
answer37
viewsQ: Passing a list like loss_weights, it should have one input per model output. Keras tells me that the model has 1 output, but I thought I had more
I have a data set df for a multiclass classification problem. I have a huge class imbalance. That is to say, grade_F and grade_G. >>> percentage = 1. /…
-
0
votes0
answers27
viewsQ: How to make a Collapsible list?
I want to create an expandable list view. In my case, you can see all the students' test results. Try the following: <!DOCTYPE html> <html> <body> <p> <label>Text…
javascriptasked Revolucion for Monica 159 -
1
votes1
answer68
viewsQ: grouby of cells of a dataframe returns Error in Eval (substitute (expr), send, Enclos): non-numerical argument for binary operator
I want to calculate the differences between cells in a dataframe of a column. > head(df_benchmark) Date .STOXXR 1 2000-01-03 478.52 2 2000-01-04 459.53 3 2000-01-05 448.19 4 2000-01-06 446.24 5…
-
0
votes1
answer294
viewsQ: How to change the color of a curve when the values increase?
I have a data set. Sometimes some values increase compared to the previous ones. resultsCos = [(0, 0.4235497237569061), (0.005, 0.4235497237569061), (0.01, 0.4238950276243094), (0.015,…
-
1
votes0
answers680
viewsQ: How to subtract two large vectors?
I want to calculate the vector difference between two large vectors. I am able to subtract a list of matrices for a matrix and put it to the power of 2 (train["quest_emb"][0] -…
-
0
votes0
answers65
viewsQ: How to process data without the kernel dying?
I want to process the data into one unsupervised.py notebook. However, every time I start, my computer almost freezes and it looks like the kernel dies. It seems to be generated because of a memory…
-
0
votes0
answers306
viewsQ: Import in notebook jupyter despite installing the library called
I tried to import a library but it doesn’t seem to be added to jupyter notebook import sys print("sys.executable:\n",sys.executable) print("sys.path:\n",sys.path) from textblob import TextBlob And…
-
1
votes0
answers217
viewsQ: How to install dependencies for an application in Heroku?
I have some problems to deploy my app in Heroku. After adding the pipefile build, the application was deployed. However, I received an error message from the application on the website. The message…