How to extract only the value from an array without the text "array" and "typecode"?
Array is shapely.linestring.centroid.xy
:
a = LineString.centroid.xy
print(a)
>> (array('d', [-1.72937...45182697]), array('d', [2.144161...64685937]))
print(a[0])
>> array('d', [-1.7293720645182697])
I need only the -1.7293...
as a float not the whole array business.