Forum Archive

Pandas wanted

hktonylee

Pythonista is great and I love it very much. I usually use it to carry out some analysis using numpy. But it would be much better if it can run pandas which is a famous time series library. I am quite sure many people want that! Thanks!

ccc

https://forum.omz-software.com/topic/2376/using-pandas-in-pythonistas

avdempsey

I keep seeing this reply, is it just to focus discussion on the old thread? There's nothing definitive in that thread.

I bought Pythonista 3 on principle, but getting pandas running would make the investment worth so much more!

syslot

@ccc Does this link mean that pandas would not be used in pythonista?

JohnOfMars

Absolutely. I too bought Pythonista 3 on principle, but if it had Pandas, then it'd have everything I need to do my work.

Phuket2

Anyone who feels they need a refund, let me know. I am not connected to Pythonista in anyway, but if you think you made a mistake purchasing this awesome product I would be more than happy to send you a gift card to reimburse you. A real offer!

avdempsey

Not even remotely looking for a refund. This software is inspiring. Pandas would just be an unreal addition.

JohnOfMars

@Phuket2 That's a generous offer, but not needed. Pythonista is fantastic and I already use it a lot. Just hoping that if there's enough demand to support another module I also happen to use.

plessner

Pandas is great. But, check out http://agate.readthedocs.io/en/1.4.0/about.html

Not pandas, but has some pandas like functionality for reading csv, manipulation of heterogeneous data, etc. Pure Python so it can be installed in Pythonista.

syslot

@plessner well, I tried to install agate use stash-pip.py, but it can't install agate well too. Do you test this package in pythonista?

plessner

@syslot You need to install version 1.3.1. I found in version 1.4.0 some dependencies use C extensions.

syslot

@plessner well, I have tried to install 1.3.1 and it cant work as well.how do you install the package?

plessner

@syslot You need to make sure the dependencies are installed:
six>=1.6.1
pytimeparse>=1.1.5
parsedatetime>=2.1
Babel>=2.0
isodate>=0.5.4

What type of error do you get when you import agate from the console?

syslot

@plessner I tried again and found
- parsedatetime == 1.3 and pip can not update it

and my import message shows below:
Traceback (most recent call last): File "<string>", line 1, in <module> File "/private/var/mobile/Containers/Shared/AppGroup/A5C76122-1A94-4EAD-8BA3-00973FBFAE31/Pythonista3/Documents/site-packages/agate/__init__.py", line 5, in <module> from agate.aggregations import * File "/private/var/mobile/Containers/Shared/AppGroup/A5C76122-1A94-4EAD-8BA3-00973FBFAE31/Pythonista3/Documents/site-packages/agate/aggregations/__init__.py", line 18, in <module> from agate.aggregations.base import Aggregation # noqa File "/private/var/mobile/Containers/Shared/AppGroup/A5C76122-1A94-4EAD-8BA3-00973FBFAE31/Pythonista3/Documents/site-packages/agate/aggregations/base.py", line 8, in <module> @six.python_2_unicode_compatible AttributeError: 'module' object has no attribute 'python_2_unicode_compatible'

~~Have you tried in Pythonista?~~

Well , after I reinstall six, Babel and parsedatetime , agate works ! Thank you and let me try it. By the way , @administrators if Pandas works, I would be more than happy!

korakot

There is some error messages, but it seems to work though.
[~/Documents]$ pip install agate==1.3.1 Querying PyPI ... Downloading package ... Opening: https://pypi.python.org/packages/c0/75/7a4749bb393846adb58bad5044fb8f32738def6c0d5a2bc7f46180f45582/agate-1.3.1.tar.gz Save as: /private/var/mobile/Containers/Data/Application/52EA8FD6-BB50-4C62-ABA3-F42811E351EC/tmp/agate-1.3.1.tar.gz (42626 bytes) 42626 [100.00%] Extracting archive file ... Archive extracted. Running setup file ... Package installed: agate Dependency already installed: six Dependency already installed: pytimeparse Dependency already installed: parsedatetime Installing dependency: Babel>=2.0 Querying PyPI ... Error: No matches found: Babel>=2.0

syslot

@plessner Hi, plessner, I have found another problem . agate (version 1.3.1) dose not support xls. It's a little pity

plessner

@korakot Yeah, I got the same message. Had to install Babel separately via pip and then things worked.

korakot

I install Babel via pip too. It's funny that I can import babel but pip itself doesn't seem to find Babel 2.0 as a dependency. Hope nothing break though.

What about agate 1.4 ? It seems to require slugify. Or does it require other c-based dependency?

plessner

@korakot Slugify requires regex (which is an enhanced replacement for the standard library re). Regex has C dependencies.

korakot

@plessner Thanks for your answer.
It's unfortunate that we can't use agate 1.4, I am taking its latest tutorial (1.4.1) though. It seems to have more detail tutorial, but I found one example doesn't work with 1.3.1.

coomlata1

I tried to install agate 1.3.1 in pythonista 2.1 using stash but I get an error with "stash: : 'No package found with that name'. I can install agate 1.2.0 without errors and I can at least get an attempt to install 1.4 but, as noted above, it errors out, due to dependencies. I searched in the PyPi index and could not find agate 1.3.1 listed. Earlier versions prior to 1.2.0 are listed as well as 1.2.0 and 1.4.0 but no 1.3.1.

Finally gave up on pip install and ended up manually installing agate 1.3.1 with stash using the URL from an earlier post in this thread by @korakot: https://pypi.python.org/packages/c0/75/7a4749bb393846adb58bad5044fb8f32738def6c0d5a2bc7f46180f45582/agate-1.3.1.tar.gz .

plessner

@syslot There is an agate-excel extension. https://github.com/wireservice/agate-excel

I haven't used it or tried to install it. So let me know if you get it to work.

ywangd

@korakot @plessner There was a bug in stash pip command that prevented it from parsing package names with uppercase letters. The bug is now fixed and you can get the updated version via selfupdate.

syslot

@plessner I have already tried and agate-excel worked. thank you

zhunsake

I would even be willingn to do an in-app purchase of $20 or so for pandas. it is the one thing missing for me in this amaazing app. keep up the awesome work!

korakot

@ywangd Thanks for the update. I am new to Pythonista and Stash. I really appriciate how Stash helps with everything.

syslot

@syslot said:

@ccc Does this link mean that pandas would not be used in pythonista?

ccc

This link means that only @omz has the power to add Pandas to Pythonista. I believe that he has been silent on the topic.

avdempsey

@zhunsake I'd happily pay extra for a pandas add-on as well!

snowch

+1 for pandas

ihf

+1 for Pandas!

oreadings

+1 for Pandas ! Please listen to the voice of people. I really need it for my work. With Pandas supported, I can finally ditch my heavy notebook and iPad finally can work as a laptop replacement for me. Thanks and please make my investment in a brand new iPad pro worth.

upwart

Yes, please!

Graham__Duncan

+1 for pandas

andrew_v

Just a side note if anyone is interested. (I hope it doesn't detract from the forum).

I find working with an android 7" tablet using a Bluetooth mouse and keyboard and running Termux, very satisfying.

I can run Jupyter offline, use vim, taskwarrior, nodejs, and much more.

The only reason I say this is because I was chasing the idea of using iOS for a while. I have the computable app which actually has Pandas installed and that was nice but it had been discontinued and is missing some key functionality.

Also I think Pythonista is awesome but I missed using a mouse.

dylanmoonhou

@Phuket2 Hi, I purchased this app but it can't support pandas. I would like a refund for this.

mikael

@dylanmoonhou, just ask Apple for a refund (in your purchase history in iTunes). If you are a customer in good standing, there probably will not be any questions asked.

low

Many people are buying this app expecting pandas, I think there might need to be a warning that pythonista can mostly only support pure python scripts and modules... because a lot of people can't seem to grasp that.

[deleted]

for pandas.