mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
chore: python version to 3.11 (while supporting 3.10) (#31503)
This commit is contained in:
committed by
GitHub
parent
855011360a
commit
274aa143d3
@@ -40,7 +40,7 @@ def geohash_decode(
|
||||
try:
|
||||
lonlat_df = DataFrame()
|
||||
lonlat_df["latitude"], lonlat_df["longitude"] = zip(
|
||||
*df[geohash].apply(geohash_lib.decode)
|
||||
*df[geohash].apply(geohash_lib.decode), strict=False
|
||||
)
|
||||
return _append_columns(
|
||||
df, lonlat_df, {"latitude": latitude, "longitude": longitude}
|
||||
@@ -109,7 +109,7 @@ def geodetic_parse(
|
||||
geodetic_df["latitude"],
|
||||
geodetic_df["longitude"],
|
||||
geodetic_df["altitude"],
|
||||
) = zip(*df[geodetic].apply(_parse_location))
|
||||
) = zip(*df[geodetic].apply(_parse_location), strict=False)
|
||||
columns = {"latitude": latitude, "longitude": longitude}
|
||||
if altitude:
|
||||
columns["altitude"] = altitude
|
||||
|
||||
Reference in New Issue
Block a user