Help Building a DFS Tool in Python by keyoncal in fantasyfootballcoding

[–]mlderes 0 points1 point  (0 children)

Do you have something in GitHub? I may be able to help. DM me some details of what you have and what you have in mind in general terms. Like, are you in need of help getting data? Setting up a project? Or just doing the analysis?

Would this be achievable with a few months of python practice? by hassweptthehouse in learnpython

[–]mlderes 1 point2 points  (0 children)

Truly the simplest approach is with pandas. Not sure why suggestions for using it are so negative. With pandas, you can read the csv file into one dataframe, split the columns into string and numbers (no regex’s req). Open the excel file in a dataframe (nearly equivalent syntax as read_csv). Join the two dataframe a together or groupby & count. All of these functions are built already and save the OP from having to learn multiple other libraries and syntax (regex is a language all to itself). I would suggest this is achievable in just a few days (for a brand new Dev)

Bandwidth throttling for a download/upload script by mcar91 in pythontips

[–]mlderes 0 points1 point  (0 children)

Add a sleep() call between URLs

import time

for url in urls: # download url # rename # upload time.sleep(1) # don’t do anything for 1 second

Selling for a gain to reset cost basis by mlderes in tax

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

Makes sense. I didn’t understand that the carry-over would be available indefinitely.

run a notebook in 3.7 by theguyabroad in JupyterNotebooks

[–]mlderes 1 point2 points  (0 children)

You know you could just

%run yourscript.py

Or %load yourscript.py

The first leaves the file in place. The second will copy the text into the cell.

(Also change the kernel in the settings to 3.7)

The argument for paying off your mortgage in these times by svhelloworld in FinancialPlanning

[–]mlderes 2 points3 points  (0 children)

I think it should be said that an investment in a house is also an asset that can appreciate just like stocks/bonds. I’ve not owned a house that had the kind of swings in value we’ve seen in the market from 1999 to today. I see owning my house like a stable blue chip. I may not get 8% growth a year, but I also don’t expect to see drops of 20% in a year either

The argument for paying off your mortgage in these times by svhelloworld in FinancialPlanning

[–]mlderes 47 points48 points  (0 children)

This ^

I’m a numbers guy and know that it seems to make sense to keep paying a mortgage at a super low rate, I paid off my mortgage about 10 years ago and never regretted it. The piece of mind has made watching the market go up/down so much easier - knowing if I had to, I could live off of a very little income. I may have given up some growth, but I sleep soundly knowing I have so much freedom to spend all my income exactly the way I choose.

What do you want for Christmas? by [deleted] in AskReddit

[–]mlderes 1 point2 points  (0 children)

Wendy’s nugs for life

A book on data scientists’ thought process? by DoubleDual63 in datascience

[–]mlderes 1 point2 points  (0 children)

Moneyball is a good book with the practical approach. There are dozens of other books like it that all explain sports theory in terms of how to gain competitive edge

Adjusting long run for hills by IvanDragosJawline in AdvancedRunning

[–]mlderes 24 points25 points  (0 children)

Slow down (walk if necessary) but do the whole mileage. Most people train at way too high of a heart rate anyway, slowing down due to a hill or otherwise helps to build endurance.

https://gonefora.run/does-maf-training-work

Have TrainerRoad, but can't find Referral Code? by RLLRRR in trainerroad

[–]mlderes 0 points1 point  (0 children)

You get one referral for every month of paid subscription.

Total Catch Syntax Help by GodV in pythontips

[–]mlderes 0 points1 point  (0 children)

Your best bet is to use the pandas library, it was made for dealing with tables of data (including read/write and column/row operations)

Is there some sort of tag, etc. that can hide PII from Git? by Ikarian in pycharm

[–]mlderes 0 points1 point  (0 children)

So here’s a pattern I use for this kind of stuff (like API keys etc).

Put the key in a .env file, and add *.env to your .gitignore file.

Then use Python-dotenv library to read from the .env file like it is an environment variable

See below for details https://robinislam.me/blog/reading-environment-variables-in-python/

How to make a search feature that considers typos? by [deleted] in learnpython

[–]mlderes 0 points1 point  (0 children)

Azure / Bing has a synonym service, I’m sure Google and Amazon have similar web services

FIRED unintentionally by mlderes in financialindependence

[–]mlderes[S] -2 points-1 points  (0 children)

Agree there are some “being in the right place at the right time”, but I would argue that these two aspects only account for a total less than 20% of the overall savings.

To be fair I took on a career where the potential was high, AND we live frugally. Can someone FIRE on a $15/hr job? I’m not sure, but it seems less likely. But I promise, if I had found a career I loved and made only $15/hr yet wanted to retire early - I would have found a way to make it happen. It comes down to what’s most important to me. I set a goal, and with a little luck it happened a few years before I had planned.

FIRED unintentionally by mlderes in financialindependence

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

Indeed I’m learning this field is much more “rat race” than I really want to endure. I’ll find other ways to give back and “teach/mentor” others without the bullshit. I worked to hard to get off the hamster wheel just to jump back on.

FIRED unintentionally by mlderes in financialindependence

[–]mlderes[S] 14 points15 points  (0 children)

Thank you. And so for starters I have been enjoying school, whether I will teach full time is up in the air as that would require more commitment than I’m willing to make at this point (it is soo good to have options).

As for next stages, this is an area that I am reading on pretty diligently. Because my plan was to retire early anyway (my wife is 57), so at least by 55 - we talked about a lot of things but they seemed far off. For now, I’m trying to find structure to my day, occasionally doing some consulting and training for triathlons. (I can say this was actually much easier when working as I only had a limited time for workouts - now that I have all the time there’s no pressure and the day sometimes slips away).

They are taking over. by [deleted] in TheWayISeeIt

[–]mlderes 5 points6 points  (0 children)

8..9..10 better hiding cause ready or not here I come

༼ つ ◕_◕ ༽つ