python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
More elegant way to create a python dictionary from a map object and list
someList=['this','that','the_other','and_this']
timeFrame='hour'
getDatafromFile(some_string,time_frame):
do some processing
return dataframeObject
The end result is a dictionary with a keyed...
horsehead97
Votes: 0
Answers: 2
How to add a column of a dictionary of dataframes?
I have a dictionary of 15 dataframes and I was searching around how to add a column to each dataframe based on an operation. In my particular case, I wanted to sum specific columns in each dataframe a...
rweber
Votes: 0
Answers: 1
optimizing nested dictionary comprehension
I have a dictionary comprehension that works, however I'm not sure if it is very readable/understandable (since I don't understand it well, but i'm a noob).
Data structures:
dict1 = {'this key 1':['t...

Casey Cushing
Votes: 0
Answers: 0
Delete certain keys from a nested dictionary using dictionary comprehension
I have to work with a nested dictionary filled with numbers in python 'my_dict', and a list that specifies the subkeys 'keys 'that have to be deleted:
keys=[1,9]
my_dict={1:{1:a, 2:b}, 2:{1:c, 3:d, 9:...
Doe. joe
Votes: 0
Answers: 4