-
Notifications
You must be signed in to change notification settings - Fork 15
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
base: master
Are you sure you want to change the base?
Homework 2 #16
Conversation
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(): |
There was a problem hiding this comment.
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(): |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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.
- The first command will be overwritten by the later one
- 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
No description provided.