-
Notifications
You must be signed in to change notification settings - Fork 307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Basic_Machine_Learning_Predicts.ipynb #8
Comments
numpy: 1.19.5 |
This input generates below error : File ~/.local/lib/python3.10/site-packages/pandas/core/generic.py:5575, in NDFrame.getattr(self, name) AttributeError: 'DataFrame' object has no attribute 'as_matrix' |
What pandas version are you using? df.as_matrix() was deprecated after version 0.23.0. Use df.values instead. |
|
Did you trying using df.values? |
Yes, it worked. But there are errors in next/rest inputs. As you mentioned earlier that I should have all the packages of those version, how do I keep them as a temporary basis so that rest things don't suffers and how do I install those version packages please. |
Example: pip install pandas==1.1.1 Just to let you know some of my codes are old. |
And your supported python version please? Because I am not able to pip install pandas==1.1.1. Below Error :
.... Very huge messages
protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DNO_ATLAS_INFO=1 -DHAVE_CBLAS -I/usr/local/include -I/usr/include -Ibuild/src.linux-x86_64-3.1/numpy/core/src/umath -Ibuild/src.linux-x86_64-3.1/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.1/numpy/core/src/common -Inumpy/core/include -Ibuild/src.linux-x86_64-3.1/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/include/python3.10 -Ibuild/src.linux-x86_64-3.1/numpy/core/src/common -Ibuild/src.linux-x86_64-3.1/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.1/numpy/core/src/common -Ibuild/src.linux-x86_64-3.1/numpy/core/src/npymath -c build/src.linux-x86_64-3.1/numpy/core/src/multiarray/scalartypes.c -o build/temp.linux-x86_64-3.10/build/src.linux-x86_64-3.1/numpy/core/src/multiarray/scalartypes.o -MMD -MF build/temp.linux-x86_64-3.10/build/src.linux-x86_64-3.1/numpy/core/src/multiarray/scalartypes.o.d" failed with exit status 1 As always, life is tough. You Github people never supports testers... Never explains required version, never shows code in action, Sorry. |
I NEVER ABLE TO RUN ANY GITHUB CODE WITHOUT ANY ERROR. EVERY TIME THERE IS ISSUE AND SEES "BYE ME A COFFEE" |
Sorry about the issues. That was just an example: pip install pandas==1.1.1. Like I say some of my codes are old and some of the codes I was using old version packages or new version packages. Python library packages is always updating. |
I have upload the update version. "Basic_Machine_Learning_Predicts_Updates.ipynb" . |
You Said "I have upload the update version. "Basic_Machine_Learning_Predicts_Updates.ipynb" ." |
Still issue not solved. Let me elaborate what I did and where I am now : I could not able. Because different sources were telling that I need to have python 3.8. So I installed python 3.8 (little bit different story, but yes, it got installed link is : https://www.linuxcapable.com/how-to-install-python-3-8-on-ubuntu-22-04-lts/) and then uninstalled numpy,pandas,sklearn,yfinance. Then I ran : (in environment) pip install numpy==1.19.5 (test_app_venv) girish@mypc:~/test_app$ jupyter notebook But, it is saying Pandas is missing. It is not loading with python 3.8 and above version libraries. I don't know how these all will run in today's environment python 3.10 and ubuntu 22.10. |
Even, when I changes the kernel in Juypter it is still saying :
|
I am using python version 3.6. |
Are you sure, above error stack will be removed if I install 3.6? |
This is what I am using. I have not test on new version of python. I am mostly using Python 3.5 and 3.6. |
I created a Virtual Machine Ubuntu 18.04 which comes python 3.6.9 with it.
|
There are errors input onwards :
X = df.drop(['Date','Close'], axis=1, inplace=True)
y = df[['Adj Close']]
Kindly tell us what packages do we need to test and run the files like pip install yfinance, pip install seaborn etc.
The version of the notebook server is: 6.4.8
Python 3.10.7 (main, Sep 8 2022, 14:34:29) [GCC 12.2.0]
Ubuntu : 22.10 (Development Branch)
The text was updated successfully, but these errors were encountered: