Been playing around with the Python API. I'm using a Pandas dataframe, to which I've added a column that has a Polyline (arcgis.geometry.Polyline class) as it's attribute. I would like to add this dataframe to a map, but the import_data method only seems to work on dataframes with x,y or lat,long column names, and I couldn't find a way to specify the Shape field when invoking the method. Is this possible?
My code, in general, looks like:
fc_lines = gis.content.import_data(df_lines)
map1 = gis.map()
df_lines is a dataframe with a column, named "Lines" that contains an arcgis.geometry.Polyline object. At least I think it contains an object - when I print out the dataframe, that column has something like