Skip to content
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

Added a sql (cte and union) to the concatenation of movie dataframes example #1

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

DerikVo
Copy link

@DerikVo DerikVo commented Nov 1, 2023

The above python code is equivalent to SQL's:

WITH all_movies_df AS (
    SELECT *
    FROM movies_df
    UNION ALL
    SELECT *
    FROM other_movies_df
)
SELECT *
FROM all_movies_df;

@DerikVo
Copy link
Author

DerikVo commented Nov 2, 2023

I noticed, some assignments on google class room still use the notebooks that utilize file pathways. I added a command to allow captains to let cooper's quickly download the dataset on their working colab environment. The link should be a folder titled "Content" with a capital C, and should only contain CSV if this code is to be adapted for other notebooks.

!gdown --folder https://drive.google.com/drive/folders/1DyiVBtUKIMg311TQTUoGt0kV2vcFcseM
!cd Content; mv *.csv ..; rmdir /content/Content

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.

1 participant