Given a_list and b_list in python, I want to merge them so that the result is c_list. In the example below, only want to merge elements that have a matching 'A'
In Microsoft Excel VBA I need to create a class that has two properties, "Name" and "Holdings". "Name" is just a string so the code for that is easy. But I ne
I have the following problem: I receive commands through an AF_UNIX socket (no problems about network byte ordering). the first word in packet is the command, t
react.js is complicated sometimes, I'm trying to access an information of a state, I have an array which has one object inside, and in this object, there is ano
I have a Student class with the following structure: class Student { String name; int age; String grade; } I have a List of Students (l
I want to print and count the users who are 'male' and are born on 1973, 1980. Is there a way to search '1973' and '1980' in 'birthday' values so I can count th
def readParksFile(fileName="national_parks(1).csv"): nationalParks = open(fileName) headers = nationalParks.readline() keys = headers.split(",")
I have a map as follows val parentMap= mutableMapOf<String,String>() parentMap["key1"]="value1" parentMap["key2"]="value2" parentMap["key3"]
EDIT: I forgot to mention that there are other dictionaries and lists, and the solutions suggested so far work very well for my example, but not if I want to ad
Java newbie... I have a dictionary like so: electronictypeModelsMap = { "laptops" => ["macbook", "thinkpad", "yoga"], "desktops" => ["macmini", "imac", "o
I am looking to compare two instances of the same class, but only the items for which both are not None. for instance, I will have a Bolt class, and one instanc
Hello i'm new to python and i'm trying to make a dictionary that can contain multiple dictionaries (depending on how many the user wants) and
edit I have 2 list of dictionaries and I am trying to compare the value of a key in the dictionaries list_1 to see if it that value exists in the value of a dif
Considering this sample dataframe: location emp 0 fac_1 emp1 1 fac_2 emp2 2 fac_2 emp3 3 fac_3 emp4 4 fac_4 emp5 It can be recreated by
I have a dictionary and a list: dictionary = {'a':1, 'b':2, 'c':3, 'd':4, 'e':5, 'f':6} remove = ['b', 'c', 'e'] I need to split "dictionary" into two dictiona
I tried looking at cache mechanisms, such as Guava's Cache. Their expiration is only since last update. What I'm looking for is a data structure that stores ke
I need to add some additional values to an existing column for my CSV file. So this is what I have so far: Sample input CSV file: Alfa,Beta,Charlie,Delta,Echo,F
I have a list consisting of multiple nested dictionaries and nested lists MyList = [{dict0}, {dict1}, {dict2} ... {dict2422}] dict0 = {'type': 'Feature', 'geom
Sorry But I can't use pandas. I have a sample input csv file that looks like this: Alfa,Beta,Charlie,Delta,Echo,Foxtrot,Golf,Hotel,India,Juliett,Kilo A1,B1,C1,D
items={ "fruits": { "summerFruits": { "Mangoes":5, "melo