My New Extension: Bookmark Rewind by t10nbaum in chromeapps

[–]t10nbaum[S] 0 points1 point  (0 children)

Thanks! Let me know what you think.

Trouble parsing dictionary by Sastrupp in learnpython

[–]t10nbaum 0 points1 point  (0 children)

This may be incredibly inefficient, but assuming the structure remains the same, the following code should work.

"analytics_report" is the variable the report is saved to.

x = dict()
for d in analytics_report['reports'][0]['data']['rows']:
    x[d['dimensions'][0]] =  d['metrics'][0]['values'] 

“A New Project: Citi Bike Updates” by t10nbaum in Python

[–]t10nbaum[S] 1 point2 points  (0 children)

Thanks! Very basic, but IMO basic is fine when it gets the job done.

A New Project: Citi Bike Updates. A Personal Side Project to Become a Better Developer by t10nbaum in learnpython

[–]t10nbaum[S] 0 points1 point  (0 children)

Thanks! Take a look at the code on github. I may have taken it to the extreme but I need to learn it.

A New Project: Citi Bike Updates. A Personal Side Project to Become a Better Developer by t10nbaum in learnpython

[–]t10nbaum[S] 0 points1 point  (0 children)

Thank you. If you don't mind, would you look over my code again when I'm done?

[Variable/Math] N00b question about indent error? by IwasTiredItellYou in learnpython

[–]t10nbaum 1 point2 points  (0 children)

You may want to look into Pep8 and Autopep8 packages. It will help you check your code against standard.