Report
Question
I’m looking to make a deep copy of a class object that contains a list of class objects, each with their own set of stuff. The objects don’t contain anything more exciting than ints and lists (no dicts, no generators ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
2 Answer 3 views

Report
Question
I have two dataframes with identical column headers. I am iterating over the rows in df1, splitting one of the columns, and then using those split columns to create multiple rows to add to the other dataframe. for index, row in df1.iterrows(): ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
1 Answer 6 views

Report
Question
This has been really bugging me. I’m creating a game where a hero moves on a grid and part of it involves a collision check. The collision check stops the hero from moving in a direction if something already occupies ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
2 Answer 5 views

Report
Question
I have a NumPy array as follows: supp = np.array([['A', '5', '0'], ['B', '3', '0'], ['C', '4', '0'], ['D', '1', '0'], ['E', '2', '0']]) Now, I want to update the row[2] as row[1]/6. I’m using.. for row in supp: ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
1 Answer 7 views

Report
Question
I have a model of restaurant and userprofile. Restaurant has all the restaurant information and userprofile has information related to user like username, all the restaurants that he/she has, address, order he/she has, restaurant he/she has favorited, and is_owner.But i ...

Please briefly explain why you feel this question should be reported .

Report Cancel
0
0 Answer 8 views

Report
Question
I am a beginner, I have a text(type str) from which I have to remove all the names. I got this website: http://timmcnamara.co.nz/post/2650550090/extracting-names-with-6-lines-of-python-code However, I am unable to run it in spyder (python version 3.4); it shows me error ...

Please briefly explain why you feel this question should be reported .

Report Cancel
0
0 Answer 5 views