I decided to stop using pandas in Python inerpreter and return list to delphi for processing it in delphi instead of python´s panda
And this is what I got:
data in python
data=[['123',456],['321',654]]
sendrawrada(data)
and I got it in delphi with function
function TMainForm.send_raw_data( pself, args : PPyObject ) : PPyObject; cdecl;
var
R: byte;
data: PPyObject;
row: array of variant;
col: array of variant;
i,j:word;
rowSize:byte;
colSize:byte;
resstr:string;
begin
with GetPythonEngine do begin
R:=PyArg_ParseTuple(Args, 'O:sendrawdata', @data);
if R<>0 then begin
application.ProcessMessages;
row:=pyobjectasvariant(data);
rowSize:=Length(row);
for i:= 0 to rowSize-1 do begin
col:=row;
colSize:=Length(col);
resstr:='';
for j:=0 to colSize-1 do begin
resstr:=resstr+vartostr(col[j]);
end;
resmemo.Lines.Add(resstr);
end;
SendMessage(resmemo.Handle, WM_VSCROLL, SB_BOTTOM, 0);
Result := ReturnNone;
end else
Result := nil;
end;
end;
here is the test code