
engineer, traveler, amateur photographer, professional problem solver
Joined February 2022
- Tweets174
- Following29
- Followers8
- Likes97
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
D98 #100daysofcode #python
Added a new file (city_flights.py) which can accept a list of cities and build a flight between them. Modules made this so much easier! I can selectively call modules build the .kml file template. Cool stuff!!! github.com/danielagee/animat…
45
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!
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
D95 #100daysofcode #python
Half way through the refactor. Found a better resource for kml structure than my previous template. developers.google.com/kml/do…
1
22
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.🤦♂️
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…
D90 #100daysofcode #Python
MVP 1 of refactor with single plot analysis is up and running! Simplified 6 files down to 2! Pushed to GitHub.
github.com/danielagee/stock-…
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!
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…
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






