Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #79276 > unrolled thread
| Started by | ryguy7272 <ryanshuell@gmail.com> |
|---|---|
| First post | 2014-10-18 13:00 -0700 |
| Last post | 2014-10-20 09:18 +0100 |
| Articles | 10 — 8 participants |
Back to article view | Back to comp.lang.python
Question about PANDAS ryguy7272 <ryanshuell@gmail.com> - 2014-10-18 13:00 -0700
Re: Question about PANDAS Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-10-19 15:19 +0100
Re: Question about PANDAS Joel Goldstick <joel.goldstick@gmail.com> - 2014-10-19 10:48 -0400
Re: Question about PANDAS Joel Goldstick <joel.goldstick@gmail.com> - 2014-10-19 16:57 -0400
Re: Question about PANDAS Rustom Mody <rustompmody@gmail.com> - 2014-10-19 22:12 -0700
Question about PANDAS flebber <flebber.crue@gmail.com> - 2014-10-19 20:54 -0700
Re: Question about PANDAS Ryan Shuell <ryanshuell@gmail.com> - 2014-10-19 15:57 -0400
Re: Question about PANDAS giacomo boffi <pecore@pascolo.net> - 2014-10-20 10:30 +0200
Re: Question about PANDAS Johann Hibschman <jhibschman@gmail.com> - 2014-10-20 09:41 -0400
Re: Question about PANDAS Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-10-20 09:18 +0100
| From | ryguy7272 <ryanshuell@gmail.com> |
|---|---|
| Date | 2014-10-18 13:00 -0700 |
| Subject | Question about PANDAS |
| Message-ID | <b671b46d-fc5d-4e62-89f6-12a222ce852a@googlegroups.com> |
I'm trying to install Pandas. I went to this link.
https://pypi.python.org/pypi/pandas/0.14.1/#downloads
I downloaded this: pandas-0.14.1.win32-py2.7.exe (md5)
I have Python27 installed.
So, I run the executable and re-run my Python script and I get the same error as before.
Traceback (most recent call last):
File "C:/Python27/stock_data.py", line 3, in <module>
import pandas as pd
ImportError: No module named pandas
I thought I just installed it! Isn't that what the executable is for? It seems like 100% of my errors are with uninstalled libraries. I don't understand why there are so, so, so many dependencies running Python. Also, I don't understand why something isn't installed, right after I just installed it.
Can someone please explain the logic to me?
Thanks.
[toc] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2014-10-19 15:19 +0100 |
| Message-ID | <mailman.14983.1413728393.18130.python-list@python.org> |
| In reply to | #79276 |
On 18/10/2014 21:00, ryguy7272 wrote: > I'm trying to install Pandas. I went to this link. > https://pypi.python.org/pypi/pandas/0.14.1/#downloads > > I downloaded this: pandas-0.14.1.win32-py2.7.exe (md5) > I have Python27 installed. > > So, I run the executable and re-run my Python script and I get the same error as before. > > > Traceback (most recent call last): > File "C:/Python27/stock_data.py", line 3, in <module> > import pandas as pd > ImportError: No module named pandas > > I thought I just installed it! Isn't that what the executable is for? It seems like 100% of my errors are with uninstalled libraries. I don't understand why there are so, so, so many dependencies running Python. Also, I don't understand why something isn't installed, right after I just installed it. > > Can someone please explain the logic to me? > > Thanks. > Have you actually run any code from the Python tutorial yet? You can do lots of things with Python that require no third party libraries. In fact many questions here go "I need a solution to this that must be in the stdlib". It strikes me that you're trying to enter an Iron Man competition before you can crawl. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence
[toc] | [prev] | [next] | [standalone]
| From | Joel Goldstick <joel.goldstick@gmail.com> |
|---|---|
| Date | 2014-10-19 10:48 -0400 |
| Message-ID | <mailman.14984.1413730124.18130.python-list@python.org> |
| In reply to | #79276 |
On Sun, Oct 19, 2014 at 10:19 AM, Mark Lawrence <breamoreboy@yahoo.co.uk> wrote: > On 18/10/2014 21:00, ryguy7272 wrote: >> >> I'm trying to install Pandas. I went to this link. >> https://pypi.python.org/pypi/pandas/0.14.1/#downloads >> >> I downloaded this: pandas-0.14.1.win32-py2.7.exe (md5) >> I have Python27 installed. >> >> So, I run the executable and re-run my Python script and I get the same >> error as before. >> >> >> Traceback (most recent call last): >> File "C:/Python27/stock_data.py", line 3, in <module> >> import pandas as pd >> ImportError: No module named pandas >> What messages did you get when you run the installer? Most people use pip to install python packages Are you writing code and putting it in C:/Python27/ ? isn't that where python is installed. You should write your code in some directory under your user tree. >> I thought I just installed it! Isn't that what the executable is for? It >> seems like 100% of my errors are with uninstalled libraries. I don't >> understand why there are so, so, so many dependencies running Python. Also, >> I don't understand why something isn't installed, right after I just >> installed it. >> >> Can someone please explain the logic to me? >> >> Thanks. >> > > Have you actually run any code from the Python tutorial yet? You can do > lots of things with Python that require no third party libraries. In fact > many questions here go "I need a solution to this that must be in the > stdlib". It strikes me that you're trying to enter an Iron Man competition > before you can crawl. > > -- > My fellow Pythonistas, ask not what our language can do for you, ask > what you can do for our language. > > Mark Lawrence > > -- > https://mail.python.org/mailman/listinfo/python-list -- Joel Goldstick http://joelgoldstick.com
[toc] | [prev] | [next] | [standalone]
| From | Joel Goldstick <joel.goldstick@gmail.com> |
|---|---|
| Date | 2014-10-19 16:57 -0400 |
| Message-ID | <mailman.14988.1413752245.18130.python-list@python.org> |
| In reply to | #79276 |
On Sun, Oct 19, 2014 at 3:57 PM, Ryan Shuell <ryanshuell@gmail.com> wrote: > > Thanks guys. I just feel frustrated that I can't do something useful. > I'm reading all about dictionaries, and types, and touples. Then I read > about string manipulation and loops; two of my favorite things to do. Then > I read about logic: > -719 >= 833 > False > > That's great, but it's just not very useful for me. I thought I could use > Python to do screen scraping. Right now, I use R to do almost all my screen > scraping. I used to use Excel, but r is just light years easier to use, so > I'll go with that. I thought Python may be even easier to use than R, and > perhaps even more powerful too. However, since I picked up my first Python > book about 3 months ago, I seem to be learning all kinds of useless things, > and no practical things. When I find cool code samples online, I can't even > get them to run. Last week I found a small sample of code that supposedly > merges data from several text files in a folder into one single file. I > played with it for a couple hours, and never got it to work. In less than > 15 minutes, I could have done the merging task, using Excel, Access, VB.NET, > C#.NET, or even a batch file. So you have a lot of experience with Microsoft world. The Open Source world is a different slant. That might contribute to your frustration. I just looked up R, and I see it is for statistics, which is something you also seem to know about. I think there will come an 'aha' moment when python clicks for you. Or maybe not. Its a very well constructed language. Good luck, though. > > I guess I'll just keep reading these books. I have 10 books, and I'm most > of the way throguh 4 of them. So far, none are teaching me anything that I > could use in my role managing financial assets. Maybe something will click > soon. I hope so. > > Thanks again everyone. > > > On Sun, Oct 19, 2014 at 10:48 AM, Joel Goldstick <joel.goldstick@gmail.com> > wrote: >> >> On Sun, Oct 19, 2014 at 10:19 AM, Mark Lawrence <breamoreboy@yahoo.co.uk> >> wrote: >> > On 18/10/2014 21:00, ryguy7272 wrote: >> >> >> >> I'm trying to install Pandas. I went to this link. >> >> https://pypi.python.org/pypi/pandas/0.14.1/#downloads >> >> >> >> I downloaded this: pandas-0.14.1.win32-py2.7.exe (md5) >> >> I have Python27 installed. >> >> >> >> So, I run the executable and re-run my Python script and I get the same >> >> error as before. >> >> >> >> >> >> Traceback (most recent call last): >> >> File "C:/Python27/stock_data.py", line 3, in <module> >> >> import pandas as pd >> >> ImportError: No module named pandas >> >> >> >> What messages did you get when you run the installer? >> Most people use pip to install python packages >> Are you writing code and putting it in C:/Python27/ ? isn't that where >> python is installed. You should write your code in some directory >> under your user tree. >> >> >> >> I thought I just installed it! Isn't that what the executable is for? >> >> It >> >> seems like 100% of my errors are with uninstalled libraries. I don't >> >> understand why there are so, so, so many dependencies running Python. >> >> Also, >> >> I don't understand why something isn't installed, right after I just >> >> installed it. >> >> >> >> Can someone please explain the logic to me? >> >> >> >> Thanks. >> >> >> > >> > Have you actually run any code from the Python tutorial yet? You can do >> > lots of things with Python that require no third party libraries. In >> > fact >> > many questions here go "I need a solution to this that must be in the >> > stdlib". It strikes me that you're trying to enter an Iron Man >> > competition >> > before you can crawl. >> > >> > -- >> > My fellow Pythonistas, ask not what our language can do for you, ask >> > what you can do for our language. >> > >> > Mark Lawrence >> > >> > -- >> > https://mail.python.org/mailman/listinfo/python-list >> >> >> >> -- >> Joel Goldstick >> http://joelgoldstick.com >> -- >> https://mail.python.org/mailman/listinfo/python-list > > -- Joel Goldstick http://joelgoldstick.com
[toc] | [prev] | [next] | [standalone]
| From | Rustom Mody <rustompmody@gmail.com> |
|---|---|
| Date | 2014-10-19 22:12 -0700 |
| Message-ID | <835650b5-5cab-4044-ab2d-7bf5e931420f@googlegroups.com> |
| In reply to | #79298 |
On Sun, Oct 19, 2014 at 3:57 PM, Ryan Shuell wrote: > > Thanks guys. I just feel frustrated that I can't do something useful. > I'm reading all about dictionaries, and types, and touples. Then I read > about string manipulation and loops; two of my favorite things to do. Then > I read about logic: > -719 >= 833 > False > > That's great, but it's just not very useful for me. I thought I could use > Python to do screen scraping. Right now, I use R to do almost all my screen > scraping. I used to use Excel, but r is just light years easier to use, so > I'll go with that. I thought Python may be even easier to use than R, and > perhaps even more powerful too. However, since I picked up my first Python > book about 3 months ago, I seem to be learning all kinds of useless things, > and no practical things. When I find cool code samples online, I can't even > get them to run. Last week I found a small sample of code that supposedly > merges data from several text files in a folder into one single file. I > played with it for a couple hours, and never got it to work. In less than > 15 minutes, I could have done the merging task, using Excel, Access, VB.NET, > C#.NET, or even a batch file. You have my sympathies. Most of what help you'll get here is 'inside-out': Start with small toys. Work slowly towards more realistic problems Many people (like you) would like to go the other way -- Start with trying to solve a real problem. Handle the small nitty-gritties as they arise. On and off Ive expressed a need in a similar direction eg https://mail.python.org/pipermail/python-list/2011-November/615522.html https://mail.python.org/pipermail/python-list/2011-May/603506.html https://mail.python.org/pipermail/python-list/2011-May/603635.html The problem with your approach is that its very system-specific >>> [1,2]+[3,4] [1, 2, 3, 4] will be the same on any python. Any OS. Any version. However installing a package will vary. And the best way of installing will vary widely. So its harder to help OTOH I will say this: Any learning requires some faith at least temporary and provisional. If you pick up some book which purports to educate on some subject and decide before opening it that - subject is bogus - author is a rogue etc etc you are not likely to get much out of it.¹ So it may irritate you to listen to the advice you get here to start baby-steps first. However if you dont listen, you are wasting time - most of all your own. ----------- ¹ Of course your suspicions may be true. Thats the fun of life!
[toc] | [prev] | [next] | [standalone]
| From | flebber <flebber.crue@gmail.com> |
|---|---|
| Date | 2014-10-19 20:54 -0700 |
| Message-ID | <fa666a5a-4101-446f-ac1b-a4c72ddf450b@googlegroups.com> |
| In reply to | #79276 |
On Windows my advice would be to use the anaconda installer. Linux pip will work flawlessly. If you install anaconda full then you will have pandas as well as an ipython launcher installed. Sayth
[toc] | [prev] | [next] | [standalone]
| From | Ryan Shuell <ryanshuell@gmail.com> |
|---|---|
| Date | 2014-10-19 15:57 -0400 |
| Message-ID | <mailman.14991.1413789745.18130.python-list@python.org> |
| In reply to | #79276 |
[Multipart message — attachments visible in raw view] — view raw
Thanks guys. I just feel frustrated that I can't do something useful. I'm reading all about dictionaries, and types, and touples. Then I read about string manipulation and loops; two of my favorite things to do. Then I read about logic: -719 >= 833 False That's great, but it's just not very useful for me. I thought I could use Python to do screen scraping. Right now, I use R to do almost all my screen scraping. I used to use Excel, but r is just light years easier to use, so I'll go with that. I thought Python may be even easier to use than R, and perhaps even more powerful too. However, since I picked up my first Python book about 3 months ago, I seem to be learning all kinds of useless things, and no practical things. When I find cool code samples online, I can't even get them to run. Last week I found a small sample of code that supposedly merges data from several text files in a folder into one single file. I played with it for a couple hours, and never got it to work. In less than 15 minutes, I could have done the merging task, using Excel, Access, VB.NET, C#.NET, or even a batch file. I guess I'll just keep reading these books. I have 10 books, and I'm most of the way throguh 4 of them. So far, none are teaching me anything that I could use in my role managing financial assets. Maybe something will click soon. I hope so. Thanks again everyone. On Sun, Oct 19, 2014 at 10:48 AM, Joel Goldstick <joel.goldstick@gmail.com> wrote: > On Sun, Oct 19, 2014 at 10:19 AM, Mark Lawrence <breamoreboy@yahoo.co.uk> > wrote: > > On 18/10/2014 21:00, ryguy7272 wrote: > >> > >> I'm trying to install Pandas. I went to this link. > >> https://pypi.python.org/pypi/pandas/0.14.1/#downloads > >> > >> I downloaded this: pandas-0.14.1.win32-py2.7.exe (md5) > >> I have Python27 installed. > >> > >> So, I run the executable and re-run my Python script and I get the same > >> error as before. > >> > >> > >> Traceback (most recent call last): > >> File "C:/Python27/stock_data.py", line 3, in <module> > >> import pandas as pd > >> ImportError: No module named pandas > >> > > What messages did you get when you run the installer? > Most people use pip to install python packages > Are you writing code and putting it in C:/Python27/ ? isn't that where > python is installed. You should write your code in some directory > under your user tree. > > > >> I thought I just installed it! Isn't that what the executable is for? > It > >> seems like 100% of my errors are with uninstalled libraries. I don't > >> understand why there are so, so, so many dependencies running Python. > Also, > >> I don't understand why something isn't installed, right after I just > >> installed it. > >> > >> Can someone please explain the logic to me? > >> > >> Thanks. > >> > > > > Have you actually run any code from the Python tutorial yet? You can do > > lots of things with Python that require no third party libraries. In > fact > > many questions here go "I need a solution to this that must be in the > > stdlib". It strikes me that you're trying to enter an Iron Man > competition > > before you can crawl. > > > > -- > > My fellow Pythonistas, ask not what our language can do for you, ask > > what you can do for our language. > > > > Mark Lawrence > > > > -- > > https://mail.python.org/mailman/listinfo/python-list > > > > -- > Joel Goldstick > http://joelgoldstick.com > -- > https://mail.python.org/mailman/listinfo/python-list >
[toc] | [prev] | [next] | [standalone]
| From | giacomo boffi <pecore@pascolo.net> |
|---|---|
| Date | 2014-10-20 10:30 +0200 |
| Message-ID | <87lhobb0tl.fsf@pascolo.net> |
| In reply to | #79306 |
Ryan Shuell <ryanshuell@gmail.com> writes:
> Thanks guys. I just feel frustrated that I can't do something useful.
I had read many of your messages in the recent past, and I'm under the
impression that your frustration has more to do with "Python the
Infrastructure" rather than "Python the Language"
my suggestions will somehow reiterate what was told you in previous
threads,
1. scrap everything python from your hard disk and your registry,
using unistall as far as possible
2. choose ONE flavour of python, either 2.7.x or 3.4.x
- future is with 3.4,
- most exaples you'll find were written (are still written...)
for 2.7.x
3. the Pyton distribution from official sources contains piles of
stuff (batteries included is the motto) but you seem interested in
what is called "the python scientific stack" and this is not
there.
If you want at once the stdlib AND the great majority of the extra
modules you're looking for AND an easy way to install other
packages, there are quite a number of third party distributions
that fit your ticket very well: entought, anaconda, active state,
pyxy, all of them should be good enough but I'n not a Windows guy
and I'm not be able to judge. Anyway, read or ask for advice on
python windows distributions, chose one, _install using the_
_defaults_, STICK WITH THAT DISTRIBUTION, familiarizing with its
infrastructure in terms of installing extra packages, setting
virtual environments, using the development tools it offers etc
in my very humble opinion, you are discomforted by the multiplicity of
the solutions and your quest for the best one... choose one, maybe not
the best one for you but trust me, it will be good enough! as soon as
you'll be in good terms with Python the language and python the
infrastructure, as presented to you by a single language version and a
single 3rd party distribution, you will gather momentum in a very
short time
my best wishes,
g
[toc] | [prev] | [next] | [standalone]
| From | Johann Hibschman <jhibschman@gmail.com> |
|---|---|
| Date | 2014-10-20 09:41 -0400 |
| Message-ID | <osxk33ukgea.fsf@gmail.com> |
| In reply to | #79313 |
giacomo boffi <pecore@pascolo.net> writes: > 2. choose ONE flavour of python, either 2.7.x or 3.4.x > - future is with 3.4, > - most exaples you'll find were written (are still written...) > for 2.7.x If you're interested in statistics (as comparisons to R suggest), I'd recommend anaconda. It comes with pandas built-in, for one. I'd also suggest the 3.4 version. Finally, just over the past few months, we've crossed over to where 3.4 is fully-functional in the anaconda distribution. (For a while statsmodels was the hold-out; matplotlib had problems before that. Now, though, all is good.) Cheers, Johann
[toc] | [prev] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2014-10-20 09:18 +0100 |
| Message-ID | <mailman.14996.1413793112.18130.python-list@python.org> |
| In reply to | #79276 |
On 19/10/2014 20:57, Ryan Shuell wrote: > > Thanks guys. I just feel frustrated that I can't do something useful. > I'm reading all about dictionaries, and types, and touples. Then I read > about string manipulation and loops; two of my favorite things to do. > Then I read about logic: > -719 >= 833 > False > > That's great, but it's just not very useful for me. I thought I could > use Python to do screen scraping. Right now, I use R to do almost all > my screen scraping. I used to use Excel, but r is just light years > easier to use, so I'll go with that. I thought Python may be even > easier to use than R, and perhaps even more powerful too. However, > since I picked up my first Python book about 3 months ago, I seem to be > learning all kinds of useless things, and no practical things. When I > find cool code samples online, I can't even get them to run. Last week > I found a small sample of code that supposedly merges data from several > text files in a folder into one single file. I played with it for a > couple hours, and never got it to work. In less than 15 minutes, I > could have done the merging task, using Excel, Access, VB.NET > <http://VB.NET>, C#.NET, or even a batch file. > > I guess I'll just keep reading these books. I have 10 books, and I'm > most of the way throguh 4 of them. So far, none are teaching me > anything that I could use in my role managing financial assets. Maybe > something will click soon. I hope so. > > Thanks again everyone. > For screen scraping you need Beautiful Soup, but if you can't run anything yet and can't install anything yet what is the point? You can read as many books as you like, but until you understand the basics of Python and not other languages that you've previously used, you'll get precisely nowhere. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web