ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 27 Apr 2013 10:51:58 -0500pandas in sage notebook in virtual box?http://ask.sagemath.org/question/9771/pandas-in-sage-notebook-in-virtual-box/I am running the sage notebook as an appliance in virtual box. I can import Numpy and matplotlib, but I can't import pandas. The error I get is that there is no such module. Is anybody else having this problem? How do I fix it?Tue, 05 Feb 2013 07:43:50 -0600http://ask.sagemath.org/question/9771/pandas-in-sage-notebook-in-virtual-box/Answer by kcrisman for <p>I am running the sage notebook as an appliance in virtual box. I can import Numpy and matplotlib, but I can't import pandas. The error I get is that there is no such module. Is anybody else having this problem? How do I fix it?</p>
http://ask.sagemath.org/question/9771/pandas-in-sage-notebook-in-virtual-box/?answer=14511#post-id-14511You would have to install pandas first, I imagine; it's not included in the usual Sage distribution. Some discussion on this is [in this sage-support thread](https://groups.google.com/forum/?fromgroups=#!topic/sage-support/69rv6bs7Xwk). You should be able to install it from the command line.
sage: !easy_install pandas
or something like that.Tue, 05 Feb 2013 08:00:55 -0600http://ask.sagemath.org/question/9771/pandas-in-sage-notebook-in-virtual-box/?answer=14511#post-id-14511Comment by fidbc for <p>You would have to install pandas first, I imagine; it's not included in the usual Sage distribution. Some discussion on this is <a href="https://groups.google.com/forum/?fromgroups=#!topic/sage-support/69rv6bs7Xwk">in this sage-support thread</a>. You should be able to install it from the command line.</p>
<pre><code>sage: !easy_install pandas
</code></pre>
<p>or something like that.</p>
http://ask.sagemath.org/question/9771/pandas-in-sage-notebook-in-virtual-box/?comment=18301#post-id-18301I think @kcrisman meant
sage: !easy_install pandas
The program `easy_install` is already included in sage's python. And `pandas` will be downloaded and installed by `easy_install`.
EDIT: Just tried installing it and it requires Numpy >= 1.6.1. Not really sure if it is safe to upgrade Numpy.Tue, 05 Feb 2013 10:54:11 -0600http://ask.sagemath.org/question/9771/pandas-in-sage-notebook-in-virtual-box/?comment=18301#post-id-18301Comment by kcrisman for <p>You would have to install pandas first, I imagine; it's not included in the usual Sage distribution. Some discussion on this is <a href="https://groups.google.com/forum/?fromgroups=#!topic/sage-support/69rv6bs7Xwk">in this sage-support thread</a>. You should be able to install it from the command line.</p>
<pre><code>sage: !easy_install pandas
</code></pre>
<p>or something like that.</p>
http://ask.sagemath.org/question/9771/pandas-in-sage-notebook-in-virtual-box/?comment=18300#post-id-18300Hmm, good point. See http://trac.sagemath.org/sage_trac/ticket/11334 for why we haven't done this yet.Tue, 05 Feb 2013 14:46:18 -0600http://ask.sagemath.org/question/9771/pandas-in-sage-notebook-in-virtual-box/?comment=18300#post-id-18300Comment by numbersmom for <p>You would have to install pandas first, I imagine; it's not included in the usual Sage distribution. Some discussion on this is <a href="https://groups.google.com/forum/?fromgroups=#!topic/sage-support/69rv6bs7Xwk">in this sage-support thread</a>. You should be able to install it from the command line.</p>
<pre><code>sage: !easy_install pandas
</code></pre>
<p>or something like that.</p>
http://ask.sagemath.org/question/9771/pandas-in-sage-notebook-in-virtual-box/?comment=18302#post-id-18302But first you have to download the pandas source code and the easy install. How do I do this for Sage 5.5 running in Virtual Box?Tue, 05 Feb 2013 08:57:41 -0600http://ask.sagemath.org/question/9771/pandas-in-sage-notebook-in-virtual-box/?comment=18302#post-id-18302Comment by kcrisman for <p>You would have to install pandas first, I imagine; it's not included in the usual Sage distribution. Some discussion on this is <a href="https://groups.google.com/forum/?fromgroups=#!topic/sage-support/69rv6bs7Xwk">in this sage-support thread</a>. You should be able to install it from the command line.</p>
<pre><code>sage: !easy_install pandas
</code></pre>
<p>or something like that.</p>
http://ask.sagemath.org/question/9771/pandas-in-sage-notebook-in-virtual-box/?comment=18299#post-id-18299@fidelbc - thanks, I edited my answer.Tue, 05 Feb 2013 14:50:04 -0600http://ask.sagemath.org/question/9771/pandas-in-sage-notebook-in-virtual-box/?comment=18299#post-id-18299Comment by DSM for <p>You would have to install pandas first, I imagine; it's not included in the usual Sage distribution. Some discussion on this is <a href="https://groups.google.com/forum/?fromgroups=#!topic/sage-support/69rv6bs7Xwk">in this sage-support thread</a>. You should be able to install it from the command line.</p>
<pre><code>sage: !easy_install pandas
</code></pre>
<p>or something like that.</p>
http://ask.sagemath.org/question/9771/pandas-in-sage-notebook-in-virtual-box/?comment=18298#post-id-18298We really should make this possible. pandas is full of win (I now use it every day, and have been for most of the last year.) Or is that "pandas *are* full of win"?Tue, 05 Feb 2013 15:56:53 -0600http://ask.sagemath.org/question/9771/pandas-in-sage-notebook-in-virtual-box/?comment=18298#post-id-18298Answer by GeorgeSalt for <p>I am running the sage notebook as an appliance in virtual box. I can import Numpy and matplotlib, but I can't import pandas. The error I get is that there is no such module. Is anybody else having this problem? How do I fix it?</p>
http://ask.sagemath.org/question/9771/pandas-in-sage-notebook-in-virtual-box/?answer=14851#post-id-14851It is possible to install pandas; however, it is not so simple as using easy_install.
The latest version of pandas (0.11) requires numpy 1.6.1 and sage is still using 1.5.1
There are also some optional dependencies (numepxr, PyTables, HDF5) that you probably want to have.
I don't know why sage lags behind in core packages such as numpySat, 27 Apr 2013 10:33:38 -0500http://ask.sagemath.org/question/9771/pandas-in-sage-notebook-in-virtual-box/?answer=14851#post-id-14851Comment by tmonteil for <p>It is possible to install pandas; however, it is not so simple as using easy_install.</p>
<p>The latest version of pandas (0.11) requires numpy 1.6.1 and sage is still using 1.5.1</p>
<p>There are also some optional dependencies (numepxr, PyTables, HDF5) that you probably want to have.</p>
<p>I don't know why sage lags behind in core packages such as numpy</p>
http://ask.sagemath.org/question/9771/pandas-in-sage-notebook-in-virtual-box/?comment=17797#post-id-17797As you can see in [trac ticket 11334](http://trac.sagemath.org/sage_trac/ticket/11334), numpy will be upgraded to 1.7.0 in Sage 5.10 (and as explained, it was not possible to upgrade to 1.6.x inbetween). If you need this version of numpy now, you can wait a few days that sage-5.9 is out an install 5.10beta0 from sources. Also, feel free to contribute ;)Sat, 27 Apr 2013 10:51:58 -0500http://ask.sagemath.org/question/9771/pandas-in-sage-notebook-in-virtual-box/?comment=17797#post-id-17797