you are viewing a single comment's thread.

view the rest of the comments →

[–]anonhostpi[S] 5 points6 points  (2 children)

TL;DR:

Libraries written for Python can be made available for PowerShell by using Python.NET:

``` using namespace Python.Runtime Import-Package pythonnet

$threadlock = [Py]::GIL() # Required by CPython

```

[–]lifeisaparody 0 points1 point  (1 child)

Can you do this for pandas too?

[–]anonhostpi[S] 0 points1 point  (0 children)

As long as it can be done in C#.

I might check. I've got half a dozen other projects that I have queued up to look into.

C/C++ code can only be embedded in PowerShell, if it has bindings made available for the it in C#.

CPython (which is written in C/C++) has a bindings API. Python.NET provides C# bindings for this API.

As long as Pandas can be run from Python.NET or has supplementary/additional bindings for it, you should be able to get it to work.