# Import pandas for scripting

**URL:** <https://forum.inductiveautomation.com/t/import-pandas-for-scripting/36293>\
**Category:** 3rd Party Modules\
**Tags:** ignition80, scripting\
**Created:** [July 2, 2020, 12:59pm UTC](https://forum.inductiveautomation.com/t/import-pandas-for-scripting/36293 "2020-07-02T12:59:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tecnoeletronic](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tecnoeletronic/32/50975_2.png) [@tecnoeletronic](https://forum.inductiveautomation.com/u/tecnoeletronic)\
**Post date:** [July 2, 2020, 12:59pm UTC](https://forum.inductiveautomation.com/t/import-pandas-for-scripting/36293/1 "2020-07-02T12:59:14Z")

</div>

Hi,

I would like to use pandas libs in my ignition scripts.

Using pip command I downloaded pandas and its dependencies and all requirements are satisfied (for Python 2.7). Using python script (outside ignition) i can use pandas' functions.  
Coping all libs in Ignition (/usr/local/ignition/user-lib/pylib) and using it in a gateway script the following error is prompt: "ImportError: Missing required dependencies ['numpy']" but it exists.  
If I try using only "numpy" a new error is prompt:

> Traceback (most recent call last):  
> File "", line 1, in   
> File "/Users/mirkoboggian/.ignition/cache/gwlocalhost\_8088/C0/pylib/numpy/ **init**.py", line 142, in   
> from . import core  
> File "/Users/mirkoboggian/.ignition/cache/gwlocalhost\_8088/C0/pylib/numpy/core/ **init**.py", line 71, in   
> raise ImportError(msg)  
> ImportError:
> 
> IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
> 
> Importing the multiarray numpy extension module failed. Most  
> likely you are trying to import a failed build of numpy.  
> Here is how to proceed:
> 
> - If you're working with a numpy git repository, try `git clean -xdf`  
> (removes all files not under version control) and rebuild numpy.
> - If you are simply trying to use the numpy version that you have installed:  
> your installation is broken - please reinstall numpy.
> - If you have already reinstalled and that did not fix the problem, then:
> 1. Check that you are using the Python you expect (you're using /Users/mirkoboggian/.ignition/cache/resources/platform/jython-2.7.1-ia5.jar/000000001498F8CC/bin/jython),  
> and that you have no directories in your PATH or PYTHONPATH that can  
> interfere with the Python and numpy versions you're trying to use.
> 
> 2. If (1) looks fine, you can open a new issue at  
> [Issues · numpy/numpy · GitHub](https://github.com/numpy/numpy/issues). Please include details on:
> 
> Original error was: No module named \_multiarray\_umath

Can you help me?

---

<div class="post-metadata">

**Author:** ![KGarner](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kgarner/32/15999_2.png) [@KGarner](https://forum.inductiveautomation.com/u/KGarner)\
**Post date:** [July 2, 2020, 1:10pm UTC](https://forum.inductiveautomation.com/t/import-pandas-for-scripting/36293/2 "2020-07-02T13:10:38Z")

</div>

I’m sorry to show you this, but since Ignition uses Jython and not CPython, pandas cannot be used. More details in this [link](https://stackoverflow.com/questions/36213908/how-can-i-import-pandas-with-jython)

EDIT:  
You know what, I may stand corrected here. There is a previous post about this where they discuss JYNI and I think that’s a potential solution here. [How to import the pandas library into ignition?](http://forum.inductiveautomation.com/t/how-to-import-the-pandas-library-into-ignition/15673/6)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 2, 2020, 5:52pm UTC](https://forum.inductiveautomation.com/t/import-pandas-for-scripting/36293/3 "2020-07-02T17:52:56Z")

</div>

Well, I haven’t seen any success reports here on the forum, so I wouldn’t hold my breath. JyNI hasn’t had any dev work in two years.
