The problem is that data
in Python is formatted as a WL List
, not a Python array. I am not sure what is the best way to do the conversion. You could try
testArray = ExportString[test, "PythonExpression"]
and convert testArray
from string to Python array using eval
. There must be a better way.
You mentioned earlier that writing to a file in WL and reading it from Python works but you were looking for a more efficient method. How many geo locations are there in your real data?