original_docstring: 
          Return trajectory geometry as LineString.
  
          Returns
          -------
          shapely LineString
          
docstring: Return trajectory geometry as LineString.
  Returns
  
  
docstring_tokens: Return trajectory geometry as LineString . Returns
code: def to_linestring(self):
          """
          Return trajectory geometry as LineString.
  
          Returns
          -------
          shapely LineString
          """
          try:
              return point_gdf_to_linestring(self.df)
          except RuntimeError:
              raise RuntimeError("Cannot generate LineString")
code_tokens: def to_linestring ( self ) : try : return point_gdf_to_linestring ( self . df ) except RuntimeError : raise RuntimeError ( "Cannot generate LineString" )
short_docstring: Return trajectory geometry as LineString.
short_docstring_tokens: Return trajectory geometry as LineString .
comment: """
          Return trajectory geometry as LineString.
  
          Returns
          -------
          shapely LineString
          """