Data Manipulation with SpatialDataFrame
Review the properties and methods available in the
SpatialDataFrame
class for data manipulation.
Properties and Methods | Description |
---|---|
columns |
Returns a list of column names. |
index_columns |
Returns a list of columns that represent the index; these columns are not part of the property columns. |
shape |
Returns a tuple with the dimensionality of the current instance. |
head |
Returns the first rows of the data. |
add_column |
Adds a new column to the current instance. The new column must have the same number of rows as the current instance. |
drop |
Returns a new instance of SpatialDataFrame with
the specified columns removed.
|
dropna |
Removes rows containing missing values and returns a new instance of
SpatialDataFrame .
|
iterrows |
Iterates through all the rows of the current instance. |
create |
Creates a SpatialDataFrame instance based on the
dataset type.
|
as_geo_data_frame |
Returns a GeoPandas GeoDataFrame based on the
current instance.
|
get_values |
Returns the data of the current instance as a NumPy array. |
write |
Writes the data of the current instance into the destination specified in the parameter dataset. |
sort_values |
Returns a new instance of SpatialDataFrame
sorted by the values of the specified columns.
|
The SpatialDataFrame
class also functions as the Python API for
Oracle Spatial database enabling Python access to Oracle Spatial functionalities and
in-database spatial analysis.
See Perform Spatial Analysis for more information.