Regression Intro - Practical Machine Learning Tutorial with Python p.2
Why Stack Overflow recommends it
Stack Overflow users link it as the tutorial they were following when they hit setup and code errors with pandas, Quandl and sklearn.
Recommended by 0 people across 0 different months, 2017 to 2018.
What it is
Part 2 of sentdex's Practical Machine Learning with Python series. It introduces regression as fitting a best-fit line to continuous data to forecast values such as stock prices, and frames it as supervised learning with a train-and-test workflow. The video also begins the hands-on setup with pandas and Quandl.
What people said
Cites Erick Eaton · 2017-06 · Stack Overflow · on “ModuleNotFoundError: No module named 'pandas'”
I'm following a practical machine learning tutorial and I am already stuck on the second video. [this video] import pandas as pd import Quandl df = Quandl.get('WIKI/GOOGL') print(df.head()) When I run the same code as the man in the video, all I get is ModuleNotFoundError: No module named 'pandas' I'm on Windows 10 using Visual Studio 2017 and I already did pip install pandas . I have python 3.6.1 installed. pip 9.0.1 from C:\Program Files\Anaconda3\lib\site-packages (python 3.6). pandas (0.19.2). Python 3.6.0 :: Anaconda 4.3.0 (64-bit)
Cites Mentalist · 2018-01 · Stack Overflow · on “brew install sklearn didn't work. What to do next?”
Heyyy, so I'm following a video tutorial [this video] that requires me to install sklearn , quandl , and pandas . Unfortunately the video author is using Windows and gave no explanation of what to do if on a Mac. I thought maybe I could use homebrew, so I installed homebrew and tried brew install sklearn , but that didn't work. Error: No available formula with the name "sklearn" When I tried pip install sklearn I got -bash: pip: command not found I had read this comment [LINK] by user acidjunk: "a home brew python already has pip." I didn't understand this the first time I read it. Now I understand that pip is included in some Python installations. But I've also since learned that installing that
Cites Hannah · 2018-04 · Stack Overflow · on “python code returning error: ufunc 'subtract' did not contain a loop with signature matching types dtype('<U32') dtype('<U32') dtype('<U32')”
I'm following the video Practical Machine Learning Tutorial with Python Introduction ( [this video] ), following is the code: import pandas as pd import quandl df = quandl.get('WIKI/GOOGL') df = df[['Adj. Open','Adj. High','Adj. Low','Adj. Close','Adj. Volume',]] df['HL-PCT'] = (df['Adj. High'] - ['Adj. Low']) / df['Adj. Low'] * 100.0 df['PCT_change'] = (df['Adj. Close'] - ['Adj. Open']) / df['Adj. Open'] * 100.0 df = df[['Adj. Close', 'HL_PCT', 'PCT_change', 'Adj .Volume']] print(df.head) The following is the error message running with Python 3.6.5: ufunc 'subtract' did not contain a loop with signature matching types dtype(< 32) dtype(< U32) dtype(< U32) I tried running with Python 2.7.14, the
Cites Gabe Maurer · 2018-11 · Stack Overflow · on “Getting a TypeError with Python quandl.get: raise_on_status”
Im following a tutorial on ML and quandl and have imported quandl and dependencies for python3. When I run import quandl data = quandl.get("EIA/PET_RWTC_D") print(data.head()) I have a quandl account and this code is from the quandl python docs since I wanted to make sure the tutorial was not wrong ( [this video] ) (I made sure it was lowercase quandl for import since it differed due to the posted date of the video), I also tried with my api_key and using that arg in quandl.get() I get the error: Traceback (most recent call last): File "ml_regression1.py", line 4, in <module> quandl.get("EIA/PET_RWTC_D", authtoken="MyAuthTokenPlaceHolder") File "/usr/local/lib/python3.5/dist-packages/quandl/get.p