python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How to append nested lists with same string together?
I have a nested list that looks like the following:
list = [['bob', '12'], ['jim', '14'], ['bob', '13']]
I am trying to get the following output:
list = [['bob', '12', '13'], ['jim', '14']]
Is there...
A5omic
Votes: 0
Answers: 2
Slice in 2 dimensional array
I have 2 dimensional array I want to get every first element in 2 dimensional list. But when I try to using slice I have strange behavior.
arr = [[10,2],[11,3],[12,4],[13,4],[14,5]]
print(arr[:][1])
...
Vladimir Yanakiev
Votes: 0
Answers: 3
Filtering lists and nested lists using streams
I have to filter a list, based on the value of an attribute. I also have to filter a nested list, based on one of its attributes, and likewise for another nested list. I wondered how this might be pos...
CurvedHalo
Votes: 0
Answers: 5
Perform a compare and assign values between two nested-data structures in python using pure python
I currently have two datasets (database, assignment) which are nested list-dict and dict-list respectively. I would like to use a sort of vlookup function of a specific key in database, and if the key...
helpmepls
Votes: 0
Answers: 1