mirror of
https://github.com/apache/superset.git
synced 2026-04-22 01:24:43 +00:00
feat: Add geospatial post processing operations (#9661)
* feat: Add geospatial post processing operations * Linting * Refactor * Add tests * Improve docs * Address comments * fix latitude/longitude mixup * fix: bad refactor by pycharm
This commit is contained in:
14
tests/fixtures/dataframes.py
vendored
14
tests/fixtures/dataframes.py
vendored
@@ -119,3 +119,17 @@ timeseries_df = DataFrame(
|
||||
index=to_datetime(["2019-01-01", "2019-01-02", "2019-01-05", "2019-01-07"]),
|
||||
data={"label": ["x", "y", "z", "q"], "y": [1.0, 2.0, 3.0, 4.0]},
|
||||
)
|
||||
|
||||
lonlat_df = DataFrame(
|
||||
{
|
||||
"city": ["New York City", "Sydney"],
|
||||
"geohash": ["dr5regw3pg6f", "r3gx2u9qdevk"],
|
||||
"latitude": [40.71277496, -33.85598011],
|
||||
"longitude": [-74.00597306, 151.20666526],
|
||||
"altitude": [5.5, 0.012],
|
||||
"geodetic": [
|
||||
"40.71277496, -74.00597306, 5.5km",
|
||||
"-33.85598011, 151.20666526, 12m",
|
||||
],
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user