Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[examples] Fix, sf population polygons div by zero error #8209

Merged
merged 1 commit into from
Sep 10, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions superset/examples/sf_population_polygons.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import json

import pandas as pd
from sqlalchemy import BigInteger, Text
from sqlalchemy import BigInteger, Float, Text

from superset import db
from superset.utils import core as utils
Expand All @@ -43,7 +43,7 @@ def load_sf_population_polygons(only_metadata=False, force=False):
"zipcode": BigInteger,
"population": BigInteger,
"contour": Text,
"area": BigInteger,
"area": Float,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The data contains:

{"zipcode":94104,"population":406,"area":0.18, ...

},
index=False,
)
Expand Down