Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Airbnb_DataScience
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kristiyan Blagov
Airbnb_DataScience
Commits
83d537cb
Commit
83d537cb
authored
1 year ago
by
Obada Alshamaa
Browse files
Options
Downloads
Patches
Plain Diff
Update singapore-airbnb-script-01.py
parent
08ff7aca
Branches
all-with-parameter
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Singapore/airbnb/scripts/singapore-airbnb-script-01.py
+2
-2
2 additions, 2 deletions
Singapore/airbnb/scripts/singapore-airbnb-script-01.py
with
2 additions
and
2 deletions
Singapore/airbnb/scripts/singapore-airbnb-script-01.py
+
2
−
2
View file @
83d537cb
...
@@ -24,7 +24,7 @@ import googlemaps
...
@@ -24,7 +24,7 @@ import googlemaps
df
=
pd
.
read_csv
(
"
singapore_listings_2017-06-27.csv
"
)
df
=
pd
.
read_csv
(
"
singapore_listings_2017-06-27.csv
"
)
# google maps API access
# google maps API access
gmaps
=
googlemaps
.
Client
(
key
=
'
AIzaSyAUQPGZvMEpQq0lo0LQ0UhAwCT8hdRVLUA
'
)
gmaps
=
googlemaps
.
Client
(
key
=
'
--Insert your key--
'
)
# add column for google maps identified planning area
# add column for google maps identified planning area
df
[
'
planning_area
'
]
=
''
df
[
'
planning_area
'
]
=
''
...
@@ -58,4 +58,4 @@ for i in range(len(df.index)):
...
@@ -58,4 +58,4 @@ for i in range(len(df.index)):
# after neighborhood was added save file to new csv
# after neighborhood was added save file to new csv
df
.
to_csv
(
'
sg_170627_corrected.csv
'
,
index
=
False
)
df
.
to_csv
(
'
sg_170627_corrected.csv
'
,
index
=
False
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment