Jump to content
ricardo chapingo

How to get a pandas dataframe in delphi

Recommended Posts

Hello:

 

i'm working with fuzzy match, my python code ends with a pandas data frame, the question is how can i to pass the data from the pandas dataframe to a delphi array?

 i have tried with this:

 

    for var V in VarPyIterate(MainModule.resultado) do
      begin
          ListBox1.Items.Add(V); (only get the dataframe headers) 
      end;

 

 

 

Share this post


Link to post

i think the first step you have to do is to convert to numpy array that supports memory buffer protocol

 

This means that you will be able to operate on data in memory as if it were a C array.

The next tricky step is to pass this array to Object Pascal which depends on your architecture and needs. For example, you could use the SharedMemory approach as the most universal

The last step is parse your memory buffer on Delphi side 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×