Re: [Tutor] substituting for time_series, Pandas, Anaconda. Practical Programming, intro Comp Sci, Gries text
From: Charles Agriesti dragrie...@comcast.net To: Tutor@python.org Sent: Wednesday, May 14, 2014 9:08 PM Subject: [Tutor] substituting for time_series, Pandas, Anaconda. Practical Programming, intro Comp Sci, Gries text Practical programming, 2nd Edition, Paul Gries, Jennifer Campbell, Jason Montojo (Python 3) P 184, the last half of chapter 10 requires the time_series module, which is no longer available, apparently replaced by Pandas. Looked into installing Pandas. Installing Anaconda is supposed to accomplish that, or help with it. Install Anaconda, It contains its own Python27, requires uninstall of old Python 2 . Done. Anaconda website says it allows easy switching between Python26, Python27, Python33. I have Python34 installed. Windows Powershell C:\Users\Charles enter: conda (shows a help file which I found less than helpful) C:\Users\Charles enter: ipython notebook This opens a browser window at http://127.0.0.1:/ , clicking 'new notebook' opens an unfamiliar looking ide called ipython notebook. Ipython = interactive python. Ipython notebook allows you to save interactive Python sessions as html. So you see input and output in one html file. Try entering import pandas, and then help(pandas) searching hard drive for pandas found a couple of things that I don't think are the pandas program. same for scipy and numpy. Pandas uses the numpy library, among others. Is this Anaconda thing any part of being able to run the scripts from the textbook with time_series? Is it a complete wild goose chase? Should I install SciPy? Is Pandas separate from that? Should I install Python33? Will this conflict with the 27 and 34 already on this computer? Give up on the Gries book and try a different one? Thanks in advance if anybody can help. Anaconda is a bundle of useful python goodies, so next to a basic python installation (which contains tons of cool stuff already), even more, non-standard libraries are installed. Like numoy, scipy, pandas, numba, etc etc. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] substituting for time_series, Pandas, Anaconda. Practical Programming, intro Comp Sci, Gries text
On Wed, May 14, 2014 at 12:08 PM, Charles Agriesti dragrie...@comcast.netwrote: Is this Anaconda thing any part of being able to run the scripts from the textbook with time_series? Is it a complete wild goose chase? First off - I know nothing about using Python in a scientific setting. Second (before anyone else points this out) this is the Python tutor list; your question is a bit off-topic (i.e. relating to specific packages/distributions rather than Python itself.) This is not a criticism or rebuke; it's just that you're likely to get better help on a list where most of the people actually use the stuff you're asking about. Having said that, Pandas appears to be a pretty normal Python package, meaning that you could install it by itself; Anaconda is a distribution of scientific Python that aims to do it all for you in one swell foop - but it's not necessary. If you've installed pip, it's as simple as pip install pandas. If you haven't installed pip and you use Windows, the simplest thing is to install pip-Win: https://sites.google.com/site/pydatalog/python/pip-for-windows Anaconda actually installs a virtual environment that doesn't rely on or interfere with other versions of Python that are already installed, so no worries there. As long as you work inside Anaconda, the fact that you also have 3.4 installed elsewhere is not an issue. The fact that Anaconda presents you with a radically different working environment than you're used to - that might be an issue. Should I install SciPy? Is Pandas separate from that? Can't answer that. SciPy is a stack, meaning that it contains multiple packages meant to work together (Pandas is one of them), and the SciPy people themselves recommend Anaconda as one of the easiest ways to install SciPy. Do you need it? No idea. Should I install Python33? Will this conflict with the 27 and 34 already on this computer? The chief source of conflict would be file associations and the system path - i.e. what happens when you double-click on a .py file or type python at a prompt. Here's where Python's virtualenv comes in handy, or a Python distribution that uses it - like Anaconda. As long as you work inside Anaconda, you don't have to worry about other versions. Give up on the Gries book and try a different one? It seems well-reviewed; a discontinued package doesn't seem like a good reason to abandon it, as long as there's a workaround... It does look like Pandas is the replacement for scikits.timeseries (although you're writing that as time_series, which makes me wonder whether it's the same package at all!) Only trial and error will tell whether the syntax for using Pandas is the same as what's in your book. Good luck! ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] substituting for time_series, Pandas, Anaconda. Practical Programming, intro Comp Sci, Gries text
On 05/14/2014 02:08 PM, Charles Agriesti wrote: Practical programming, 2nd Edition, Paul Gries, Jennifer Campbell, Jason Montojo (Python 3) P 184, the last half of chapter 10 requires the time_series module, which is no longer available, apparently replaced by Pandas. Read the first paragraph on page 185. The two def's on page 184 are saved in a file called time_series.py, this is what is being imported. Of course the paragraph gets confusing when it talks about importing tsdl. If I remember right once the time_series file was in the current directory the examples then worked. Regards, Jim ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] substituting for time_series, Pandas, Anaconda. Practical Programming, intro Comp Sci, Gries text
- Original Message - From: Jim Byrnes jf_byr...@comcast.net To: tutor@python.org Cc: Sent: Wednesday, May 14, 2014 10:40 PM Subject: Re: [Tutor] substituting for time_series, Pandas, Anaconda. Practical Programming, intro Comp Sci, Gries text On 05/14/2014 02:08 PM, Charles Agriesti wrote: Practical programming, 2nd Edition, Paul Gries, Jennifer Campbell, Jason Montojo (Python 3) P 184, the last half of chapter 10 requires the time_series module, which is no longer available, apparently replaced by Pandas. Read the first paragraph on page 185. The two def's on page 184 are saved in a file called time_series.py, this is what is being imported. Of course the paragraph gets confusing when it talks about importing tsdl. If I remember right once the time_series file was in the current directory the examples then worked. pandas = PANel DAta analysis (not sure about the S). So time series, orignally. CRAN R on steroids. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor