girs.feat.layers.data_frame_to_layer¶
-
data_frame_to_layer
(df, target='')¶ Return a LayersWriter from the pandas DataFrame.
The columns must have unique names. One column must be denominated according to DataFrameFeature.geometry_fieldname ‘_GEOM_’
Parameters: - df (pandas.DataFrame) – the DataFrame
- target (LayerWriter, str, or OGRDataSet) – an object LayerWriter, a file name of a new LayerWriter, or a dataset from a LayerWriter (writable)
Returns: LayerWriter instance