-
Notifications
You must be signed in to change notification settings - Fork 0
Hw3 #3
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?
Conversation
bda602_hw3.py
Outdated
| "on nb.batter" | ||
| "where nb.local_date between nb.local_date -100 and nb2.local_date" | ||
| "GROUP by nb.batter,nb.local_date" | ||
| ) |
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.
Your sql code is not working for me. I am not sure but shouldn't it start with three quotation marks instead of having this mark at the beginning of every line?
"""SELECT nb.batter,nb.Hit,nb.atBat,nb.game_id,nb.local_date,"
...
local_date"""
like this?
bda602_hw3.py
Outdated
| df.show(5) | ||
| df.printSchema() | ||
|
|
||
|
|
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.
I don't think your transformer is working
use this one Bita