programmer1853

u/programmer1853


r/HawaiiVisitors•

Never been to Hawaii but I just started surfing and would like to spend a week learning from some Hawaiin master -- internet searching won't really get me what I want, do any you locals that browse this subreddit know of any true surfing masters that could teach a couple of fellows?

04


r/BankOfAmerica•

Is there any way to shut that automated phone bitch up while I wait to speak to a representative? Been on hold over half an hour and this annoying bitch comes out loud af every 30 seconds

EDIT: Was on hold 1 hour and 5 minutes before I accidentally hung up --FUCK BANK OF AMERICA

12





r/learnpython•

Hello all. I am so stuck trying to write my data into a JSON file I am literally crying. I have 100 text files with three columns, a, b, and c, each containing a set number of measurements. I would like to assign each file an ID, a random number really, as well as a string that's either "X" or "Y". I would like to save the ID and string, as well as all the measurements from the columns. I tried making an array of ID and string to be the same size as the measurements, and then pass them to a dictionary:

dict = {"ID": [], "STRING": [], "col_a": [], "col_b": [], "col_c: []}

This doesn't work, it gives me an error telling me that "{} is not JSON serializable". Any help is much-appreciated

05

r/learnpython•

Hi all. I am reading in a bunch of json files in a for loop. The file has many subgroups (is that what you call them?). Such that if the file is loaded as data the subgroup I am interested in is data["group1"]["group2"]

I have a for loop that queries all of these files, but some of these files do not have a "group2" group! Thus my for loop breaks. Is there a way to only read files that have "group2"? Sorry if this is confusing..

74