Pandas would be very useful.
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Best posts made by ihf
-
RE: Outliner with drag/drop reordering - part 2
@cvp Using a UI would be very nice but I would settle for the console. Python comes on the Mac but since it is OSX (and not iOS) you can pretty much install any Python distribution you like. I use Anaconda.
-
RE: Pythonista on Android
With the advantage that there would be no restrictions on the libraries that could be ported :-) I would guess that @omz has his hands full with IOS but it would be great if someone would develop an IDE for Android. SL4A makes it easy to run python 2.7 or 3 but I have not seen an IDE that runs under Android.
-
RE: Outliner with drag/drop reordering - part 2
@cvp I am glad to see that you are maintaining a sense of humor. (or at least I hope you are).
-
RE: Outliner with drag/drop reordering
@cvp Good question. On the Notebook app that I've mentioned earlier, if you move to under the 2.0 it becomes 3.0 but if you move to under the b (in 2.0) then it becomes 2.1. So it is sensitive to whether the location is indented or not.
-
Outliner with drag/drop reordering
I am looking for an outliner tool (app) that would permit me to create an outline using either the Roman numeral (I. A. a., ii. ) or numeric format (1. 1.1 1.11 1.111). and that would support drag and drop reordering of items. I have searched unsuccessfully for such an app. I think this ought to be possible with Pythonista but I am not skilled enough to do that. Has anyone done this with Pythonista or seen an app to do this?
-
RE: New Beta for Pythonista 3.3
Some Apple Watch support would be a great addition and (as has been said) would help fill the void that Apple created when they replaced Workflow with Shortcuts.
-
What's in the works for Pythonista?
@omz Can you share with us what you are working on for future releases of Pythonista?
Latest posts made by ihf
-
RE: Pythonista 3 3.4 (340006) beta: Import pandas throws error
@jonb selfupdate says I am at the up-to-date version already; however, on another iPad I tried:
import requests as r; exec(r.get('https://bit.ly/get-stash').content)
The version it then installs does not appear to be patched to run on 3.4.
-
RE: Pythonista 3 3.4 (340006) beta: Import pandas throws error
@jonb Thanks! I managed to copy and modify the patched files and now stash will launch. I tried invoking scp in stash and got:
[~/Documents]$ scp nw-chg.py john@192.168.3.100:/Users/john stash: <class 'SyntaxError'>: invalid hexadecimal literal (number.py, line 398)
Then I tried:
[~/Documents]$ pip install scp Querying PyPI ... Downloading package ... Opening: https://files.pythonhosted.org/packages/7c/85/595a938d24bf4c88fe3ca4424ec9d934175fee800278769c7d4257dcf11a/scp-0.14.4-py2.py3-none-any.whl Invalid url: https://files.pythonhosted.org/packages/7c/85/595a938d24bf4c88fe3ca4424ec9d934175fee800278769c7d4257dcf11a/scp-0.14.4-py2.py3-none-any.whl Error: failed to download package from https://files.pythonhosted.org/packages/7c/85/595a938d24bf4c88fe3ca4424ec9d934175fee800278769c7d4257dcf11a/scp-0.14.4-py2.py3-none-any.whl [~/Documents]$
It’s been awhile since I’ve used stash so I don’t know if this is a result of the new version.
-
RE: Pythonista 3 3.4 (340006) beta: Import pandas throws error
@jonb Is there an easy way to patch Stash with the modified files?
-
RE: Pythonista 3 3.4 (340006) beta: Import pandas throws error
@JonB There was no pandas folder in site-packages-3 but there was dataclasses.py which was probably left over from an attempt to install pandas many moons ago and it was being called by the current working pandas. It works now. Thanks for your help! Now on to getting Stash to work and converting all my old 2.7 code to 3.11. What is the easiest way to do that?
-
RE: Pythonista 3 3.4 (340006) beta: Import pandas throws error
@JonB I thought I would use stash to find and delete the folder but when I tried that I got:
Traceback (most recent call last): File "/private/var/mobile/Containers/Shared/AppGroup/228D1F3E-E592-4896-BBF5-D6EA74943D0D/Pythonista3/Documents//launch_stash.py", line 28, in <module> from stash import stash File "/private/var/mobile/Containers/Shared/AppGroup/228D1F3E-E592-4896-BBF5-D6EA74943D0D/Pythonista3/Documents/site-packages/stash/__init__.py", line 2, in <module> from . import core as stash File "/private/var/mobile/Containers/Shared/AppGroup/228D1F3E-E592-4896-BBF5-D6EA74943D0D/Pythonista3/Documents/site-packages/stash/core.py", line 23, in <module> from .system.shcommon import (_EXTERNAL_DIRS, _STASH_CONFIG_FILES, _STASH_ROOT, _SYS_STDOUT, IN_PYTHONISTA, ON_IPAD) File "/private/var/mobile/Containers/Shared/AppGroup/228D1F3E-E592-4896-BBF5-D6EA74943D0D/Pythonista3/Documents/site-packages/stash/system/shcommon.py", line 20, in <module> _properties = plistlib.readPlist(os.path.join(os.path.dirname(sys.executable), 'Info.plist')) AttributeError: module 'plistlib' has no attribute 'readPlist'
-
RE: Pythonista 3 3.4 (340006) beta: Import pandas throws error
I tried on another device and got this:
import pandas Traceback (most recent call last): File "<string>", line 1, in <module> File "/var/containers/Bundle/Application/2ED6F7E9-20E0-4979-9558-F1FDD9658AEB/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/pandas/__init__.py", line 23, in <module> from pandas.compat import is_numpy_dev as _is_numpy_dev ImportError: cannot import name 'is_numpy_dev' from 'pandas.compat' (/private/var/mobile/Containers/Shared/AppGroup/228D1F3E-E592-4896-BBF5-D6EA74943D0D/Pythonista3/Documents/site-packages-3/pandas/compat/__init__.py)
-
RE: Pythonista 3 3.4 (340006) beta: Import pandas throws error
Is this what you get as pandas location:
print(module_location)
/var/containers/Bundle/Application/DF6A09C5-6B68-4B8C-AC96-FDA70410D7D7/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/pandas/init.py -
RE: Pythonista 3 3.4 (340006) beta: Import pandas throws error
@Olaf other than doing a simple search for “pandas”, how would I know? I don’t find any other Pandas modules when I do that search.
-
Pythonista 3 3.4 (340006) beta: Import pandas throws error
After recovering from the shock and delight of seeing v3.4 I tried doing an import of pandas and got:
>>> import pandas as pd Traceback (most recent call last): File "/private/var/mobile/Containers/Shared/AppGroup/228D1F3E-E592-4896-BBF5-D6EA74943D0D/Pythonista3/Documents/site-packages-3/pandas/__init__.py", line 30, in <module> from pandas._libs import hashtable as _hashtable, lib as _lib, tslib as _tslib File "/private/var/mobile/Containers/Shared/AppGroup/228D1F3E-E592-4896-BBF5-D6EA74943D0D/Pythonista3/Documents/site-packages-3/pandas/_libs/__init__.py", line 14, in <module> from pandas._libs.tslibs import ( File "/private/var/mobile/Containers/Shared/AppGroup/228D1F3E-E592-4896-BBF5-D6EA74943D0D/Pythonista3/Documents/site-packages-3/pandas/_libs/tslibs/__init__.py", line 32, in <module> from .nattype import NaT, NaTType, iNaT, is_null_datetimelike, nat_strings ImportError: cannot import name 'is_null_datetimelike' from 'pandas._libs.tslibs.nattype' (unknown location) The above exception was the direct cause of the following exception: Traceback (most recent call last): File "<string>", line 1, in <module> File "/private/var/mobile/Containers/Shared/AppGroup/228D1F3E-E592-4896-BBF5-D6EA74943D0D/Pythonista3/Documents/site-packages-3/pandas/__init__.py", line 34, in <module> raise ImportError( ImportError: C extension: 'is_null_datetimelike' from 'pandas._libs.tslibs.nattype' (unknown location) not built. If you want to import pandas from the source directory, you may need to run 'python setup.py build_ext --inplace --force' to build the C extensions first.
-
RE: Outliner with drag/drop reordering - part 2
@cvp I guess it is worth testing to see what happens when the DataJar app is running already and when it is not.