Skip to content

Commit

Permalink
Update geotable pyi
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron committed Jul 1, 2024
1 parent 4bff659 commit a8ad9e8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
10 changes: 0 additions & 10 deletions python/core/python/geoarrow/rust/core/_rust.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -1128,17 +1128,10 @@ class ChunkedFloat64Array:
# def to_numpy(self) -> NDArray[np.uint8]: ...

class GeoTable:
def __arrow_c_stream__(self, requested_schema: object | None = None) -> object: ...
def __eq__(self, other: Self) -> bool: ...
@property
def __geo_interface__(self) -> dict: ...
def __len__(self) -> int: ...
def __repr__(self) -> str: ...
def explode(self) -> Self: ...
@classmethod
def from_arrow(cls, input: ArrowStreamExportable) -> Self: ...
@classmethod
def from_geopandas(cls, input: gpd.GeoDataFrame) -> Self: ...
@property
def geometry(
self,
Expand All @@ -1152,9 +1145,6 @@ class GeoTable:
| ChunkedMixedGeometryArray
| ChunkedGeometryCollectionArray
): ...
@property
def num_columns(self) -> int: ...
def to_geopandas(self) -> gpd.GeoDataFrame: ...

# Top-level array/chunked array functions

Expand Down
6 changes: 0 additions & 6 deletions python/core/src/table/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@ impl GeoTable {
Python::with_gil(|py| chunked_geometry_array_to_pyobject(py, chunked_geom_arr))
}

/// Number of columns in this table.
#[getter]
fn num_columns(&self) -> usize {
self.0.num_columns()
}

fn __repr__(&self) -> String {
self.0.to_string()
}
Expand Down

0 comments on commit a8ad9e8

Please sign in to comment.