Skip to content

Conversation

@TDerig23
Copy link
Owner

@TDerig23 TDerig23 commented Oct 6, 2022

use this one Bita

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"
)
Copy link
Collaborator

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()


Copy link
Collaborator

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

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