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

LatLong type #57

Merged
merged 21 commits into from Jan 18, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions featuretools/tests/testing_utils/mock_ds.py
Expand Up @@ -301,8 +301,10 @@ def make_ecommerce_entityset(with_integer_time_index=False, base_path=None, save

df = pd.read_csv(filenames[entity], encoding='utf-8')
if entity is 'log':
df['latlong'] = map(lambda x: latlong_unstringify(x), df['latlong'])
df['latlong2'] = map(lambda x: latlong_unstringify(x), df['latlong2'])
df['latlong'] = list(map(
lambda x: latlong_unstringify(x), df['latlong']))
Copy link
Contributor

Choose a reason for hiding this comment

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

i think this line can actually be

df['latlong'] = df['latlong'].apply(latlong_unstringify)

df['latlong2'] = list(map(
lambda x: latlong_unstringify(x), df['latlong2']))

es.entity_from_dataframe(entity,
df,
Expand Down