Skip to content

Homework 2 #16

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rorycochrane
Copy link

No description provided.

@please-wait please-wait requested a review from xinbinhuang July 27, 2019 21:07
from alpha_vantage.timeseries import TimeSeries
ts = TimeSeries(key='YADS9AQEC5BOFNJK',output_format='pandas')
# Get json object with the intraday data and another with the call's metadata
def Get_stocks():
Copy link
Collaborator

Choose a reason for hiding this comment

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

Python is case-sensitive: the function name Get_stocks() should be the same as what you pass in t1. Suggetsed to have them both called get_stocks()

from alpha_vantage.timeseries import TimeSeries
ts = TimeSeries(key='YADS9AQEC5BOFNJK',output_format='pandas')
# Get json object with the intraday data and another with the call's metadata
def Get_stocks():
Copy link
Collaborator

Choose a reason for hiding this comment

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

When you pass provide_context=True in the PythonOperator. Make sure to have your python callables to accept key-word arugments (i.e. def get_stocks(**context))

@@ -0,0 +1 @@
pandas alpha_vantage
Copy link
Collaborator

Choose a reason for hiding this comment

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

Need to put each dependency in a new line.

webserver:
image: puckel/docker-airflow:1.8.1
restart: always
command:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do not specify multiple command in the docker-compose file.

  1. The first command will be overwritten by the later one
  2. It's not clear for other developers

To have multiple bash commands, do something like this bash -c "<long string of commands>" docker/compose#2033

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants