An.Anonymous.Mouse (@dmagee__) header
An.Anonymous.Mouse (@dmagee__) profile picture

engineer, traveler, amateur photographer, professional problem solver

Joined February 2022
Photo by An.Anonymous.Mouse (@dmagee__)Photo by An.Anonymous.Mouse (@dmagee__)Photo by An.Anonymous.Mouse (@dmagee__)Photo by An.Anonymous.Mouse (@dmagee__)Photo by An.Anonymous.Mouse (@dmagee__)Photo by An.Anonymous.Mouse (@dmagee__)Photo by An.Anonymous.Mouse (@dmagee__)Photo by An.Anonymous.Mouse (@dmagee__)Photo by An.Anonymous.Mouse (@dmagee__)Photo by An.Anonymous.Mouse (@dmagee__)
D100 #100DaysOfCode #Python3 Last day of the challenge!! Sharing Python and Turtle with my son. Hit and miss on his interest, but he liked the neat patterns created with simple loops. Happy New Year!!
1
103
D99 #100daysofcode #python I remember an Apple advertisement a few years ago: “Yeah, there’s an app for that…” I think the same could be said for Python. I was about to write a GPS to distance function when I found one that’s already built. Quite handy! pypi.org/project/geopy/
1
56
D97 #100daysofcode #python Adding some flare to the project. Can make Google Earth view spin as it draws the lines. Requires a lot of added lines in the .kml file (literally thousands), but only about a dozen lines of Python code! Refactoring made this change SO much easier!
1
1
127
D96 #100daysofcode #python Finally fixed what I broke with the refactor. On the plus side, significantly streamlined the code! 269 lines to 145 lines 12 files to 5 files
1
2
32
D94 #100daysofcode #python Revisiting the Google Earth animator project. I want to fly between the cities I’ve visited this year with animations of routes I’ve run in each city. Step 1: Put new learnings to use and refactor with modules...😑
1
17
D93 #100daysofcode #Python Finally got the merge working properly. Dropped another 2 lines of code with some added functionality! Making progress!
23
D92 #100daysofcode #Python Troubleshooting my merge(). The output df matched the left df and included no data from the right df. After an hour and a half and multiple variations of merge() syntax, I realized I was exporting the left df twice and comparing it to itself.🤦‍♂️
1
16
D91 #100daysofcode #Python And I’ve now fully broken MVP 1 of the refactor while trying to refactor it further… Learning more about the merge function in pandas to fix the breaks. pandas.pydata.org/docs/refer…
1
17
D89 #100daysofcode #Python Making progress!! 193 lines of code and 5 .py files refactored to 179 lines, 8 functions, and 1 file! Definitely like the flow better too!
1
27
D88 #100daysofcode #python Found a few lines of code which were repeated 3 times. Made a function which incorporated those lines and now iterates over a list.
12
D87 #100daysofcode #python Cut another 16 lines of code by using a single yfinance call rather than two separate calls to get historical prices and dividends. Also means I no longer have to merge the two data sets. Can't remember why I did it the other way in the first place...
2
149
D86 #100daysofcode #Python Continuing to refactor by adding functions... So far condensed 3 python files and 62 lines of code into 1 file, 45 lines, and 4 functions! Holding off on GitHub updates for now until it's fully functional again.
44
D85 #100daysofcode #Python Continuing to refactor by adding functions. Again, not entirely sure if it's a good or bad change, but it's a learning process. Today I figured out how to use the output from one function to feed another!
17
D84 #100daysofcode #python Discovered a new function! Eliminated one line of code! Small victories. :)
D83 #100daysofcode #Python Found a GitHub project which is similar (but smaller in scope) to what I’m trying to do. Very different structure, much more function heavy. Trying to work it backwards now and see what I can improve in mine! github.com/mattygyo/stock_po…
1
1
1
D82 #100daysofcode #Python Hmm… My refactor added lines of code, but it gives me more flexibility and I think looks cleaner. Still debating if this is a good or bad thing. At least I know how to call a function within a for loop now. Small victories for learning?
D81 #100daysofcode #Python Trying to digest this one today. I think I over-used classes and under-used methods? Still trying to process the best way to reorganize my code... youtu.be/o9pEzgHorH0