Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 254501

Python is an interpreted, general-purpose high-level programming language whose design philosophy emphasizes code readability. Use the python tag for all Python related questions. If you believe your question may be even more specific, you can include a version specific tag such as python-3.x.

1 vote
1 answer
3k views

What is the pythonic way to update my nested dictionary?

So I need to update my nested dictionary where the key is "compensationsDeltaEmployee". I created a string cost_perhour to hold the value of my conditional statements. Now that I am done with the stri …
JThao's user avatar
  • 57
1 vote
1 answer
2k views

Function to add a new key pair value to my JSON file

As you can see I am using a counter variable to iterate through my JSON file and it's a dictionary that has a list of dictionaries. Once I find the key normalHours I divide it and add it to my diction …
JThao's user avatar
  • 57
1 vote
2 answers
1k views

Is there a faster way to write dictionary values to csv?

I am using python 2.7 here is my code. empty = "" with open("parse_data.csv", "w") as f: for key, value in order_dic_keys.items(): if value is None or value == "": empty += "" …
JThao's user avatar
  • 57
1 vote
1 answer
71 views

Checks for removing files after X amount of days

I am trying to remove files in my directory if they are over 30 days. However, I don't know what other checks I need to do. The examples I found online weren't very thorough besides just subtracting t …
JThao's user avatar
  • 57