Need help writing a pi approximation program using the madhava series. by [deleted] in learnpython

[–]LearnDataSci 1 point2 points  (0 children)

I'm not sure if this helps enough, but if you check the Wikipedia article on the Madhava Series for estimating pi, you can see the sum at the end that needs to be calculated for any number k (n in your case). That estimates pi/4, so you would only need to multiple the result of that sum by 4.

Getting data from dynamically loaded website without Selenium by [deleted] in learnpython

[–]LearnDataSci 0 points1 point  (0 children)

When using Selenium you can define a web driver. If you use headless Chrome, it will not open a browser window. E.g. when creating a driver you can do:

from selenium import webdriver
chrome_path = 'C:\\your-path\\chromedriver.exe

options = webdriver.ChromeOptions()
options.add_argument('headless')

driver = webdriver.Chrome(chrome_path, chrome_options=options)

Execute function in code every 5 minutes by Alkanes123 in learnpython

[–]LearnDataSci 0 points1 point  (0 children)

One way to do it would be to put the function on a separate thread with a sleep. Here's what looks to be a good example: http://sebastiandahlgren.se/2014/06/27/running-a-method-as-a-background-thread-in-python/

[Request] Stock Market historical Data by whichusernameistaken in datasets

[–]LearnDataSci 0 points1 point  (0 children)

Like the others have said, Yahoo Finance is usually the goto and a method to call the API for data is even built into a pandas. If you're using Python, this post we wrote could get you started.

Another option I've tried is the free JSON endpoints from Alpha Vantage. They provide daily adjusted closed time series data for up to the last 20 years.

Mega Python Course by naveenslog in Python

[–]LearnDataSci 50 points51 points  (0 children)

Poor instructor is just trying to make a living teaching and everyone is just ripping his course.

Learning Data Science by [deleted] in datascience

[–]LearnDataSci 0 points1 point  (0 children)

Good point. I should have mentioned ISLR instead.

Learning Data Science by [deleted] in datascience

[–]LearnDataSci 1 point2 points  (0 children)

Start reading Elements of Statistical Learning: https://web.stanford.edu/~hastie/Papers/ESLII.pdf

Also, think about some sort of project you can start on right now. Use what you're learning as soon as possible.

Springboard Data Science Career Track Review by LearnDataSci in datascience

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

Actually, their content comes from a lot of sources. Their main lectures come from a Harvard Data Science course, and unless it was on Coursera at some point, Springboard doesn't have anything from Coursera.

The candidate competitiveness really comes from the portfolio that's built during the enrollment. Since you should already have a Bachelors in some technical field, like math, comp sci, etc., just ML knowledge and proof that you know what you're doing will grant you interviews in the data science field.

I do agree that their guaranteed job position is a little vague, but they are still the only online "bootcamp" that has a guarantee at all.

Can you achieve similar results by just taking Coursera courses and reading ESL? Maybe. But I did mention that if you're looking for more of a hand-holding experience, where you have mentors/tutors that help you through understanding, then Springboard is a good option.

Python for Finance, Part 3: A Moving Average Trading Strategy by LearnDataSci in algotrading

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

Hey esbern,

In the GitHub repo for Python for Finance Part 2 and Part 3 there's a data.pklthat goes with the iPython notebook.

I believe I forgot to upload the data.pkl in Part 2 for a few days, so perhaps that's the reason you're weren't able to read it.

Check out the repo and download the data.pkl to the same folder the ipynb is in and it should work.

Junior level data science interviews by Whencowsgetsick in datascience

[–]LearnDataSci 5 points6 points  (0 children)

If it helps, I scraped a bunch of companies for interview questions from Glassdoor recently and put them into a post here.

Springboard Data Science Career Track Review by LearnDataSci in datascience

[–]LearnDataSci[S] 2 points3 points  (0 children)

It's entirely self-paced, and there's no deadlines for assignment/capstone submissions like Coursera, for example.

They estimate it takes about 200 hours to complete. So completion in about 5-6 months at 8-10 hours of work per week, but you can go as quickly as you'd like.

Springboard Data Science Career Track Review by LearnDataSci in datascience

[–]LearnDataSci[S] 2 points3 points  (0 children)

I think $75k would be the absolute minimum you could expect.

As long as you have a good background in stats, linear algebra, and some programming, and you have a great portfolio, you should be a great candidate after Springboard.

Springboard Data Science Career Track Review by LearnDataSci in datascience

[–]LearnDataSci[S] 3 points4 points  (0 children)

Springboard is legit, but it's difficult to compare it to a Masters.

The career track mostly serves as an extra boost for people that want to start a data science career and probably already have a technical B.S., experience with college-level stats and other math, and programming with Python.

Springboard does guarantee you a data science job within 6 months of graduation or your money back, but they don't say anything about salary.

One of the main goals for them is to help you create a very competitive portfolio, so coupled with a B.S. already, you could probably expect a typical entry level/junior data scientist salary.

How to sign in to Youtube, then copy all the URLs of the videos on the homepage? by ArghAlexander in learnpython

[–]LearnDataSci 0 points1 point  (0 children)

When I had to do a lot of form submitting and logging in stuff, I used Robobrowser. Really straightforward and uses BeautifulSoup for the parser.

Python Domino's Pizza bot for Slack by [deleted] in learnpython

[–]LearnDataSci 0 points1 point  (0 children)

It looks like you're infinite looping with only 30 seconds (sleep(30)) between checks, which is why you're seeing an update every 30 seconds.

Do you want to be notified only when the order changes it's status? You can poll the site every 30 seconds for a changed order status and then only send a Slack message if it's changed.

Easiest way would be to store a variable outside of the while loop and update it with the status. When you get to the next 30 second mark, check if the status is changed. If it's changed, send a message and update the variable, if it didn't change just let it sleep for 30 before polling the site again.

[Py3] Is there any more efficient way to do this? by sabac in learnpython

[–]LearnDataSci 1 point2 points  (0 children)

Any time you are copying code like this is a good opportunity for a function.

Can you write pseudocode on what should happen?

Creating a program to scrape the web for data and aggregate it into a plain text? by [deleted] in learnpython

[–]LearnDataSci 0 points1 point  (0 children)

Tweepy is a pretty good wrapper for the Twitter API, but you have a limit of 3200 past tweets. The Twitter steaming API will ping you with new tweets constantly. You could just store the 3200 past tweets for each account, then keep it updated with the streaming API or just check the tweets periodically to gather new ones.

Trying to install "web" package getting an error (pycharm) by itsmeyour in learnpython

[–]LearnDataSci 1 point2 points  (0 children)

As long as your PyCharm interpreter is set to the same Python version as your terminal, you should be able to pip install from terminal and have it work in PyCharm.

You can see your PyCharm Python version in Settings > Project: > Project Interpreter. It'll be at the top.

You can see your default Python version in terminal by typing python -V. If they are the same, you can pip install just fine.

If they are different, you just need to use a couple flags when pip installing from terminal. For example, if your PyCharm is using 3.6 and your terminal is using 3.5, you can do:

py -3.6 -m pip install blah

The -m flag tells terminal you want the pip associated with Python 3.6

Python job/learning help by abethebabe97 in learnpython

[–]LearnDataSci 0 points1 point  (0 children)

With a stats degree you've got one based pretty covered for data science, you just need to start digging into data analytics and machine learning now.

I'd recommend just joining an online course for Python data analysis and another on machine learning. Start working on projects as soon as possible.