akrherz / iem-web-services

if statements can be merged PTC-W0048
Anti-pattern
Major
5 months ago2 years old
Consider merging collapsible if statements
42        if isdt(df[column]):
43            df[column] = df[column].dt.strftime(ISO8601)
44    res = ""
45    if fmt != SupportedFormats.geojson:46        if "geom" in df.columns:
47            # Means to covert a GeoDataFrame to DataFrame
48            df = DataFrame(df.drop("geom", axis=1))