GoogleCloudPlatform / GoogleCloudPlatform/training-data-analyst

just a typo

Open
#2,345 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
8.6k
Forks
6.1k
Avg merge
4h 44m
Merged PRs (30d)
2

Description

**typo** = print(df_transport,5)
**fix** = print(df_transport)

**reasoning**
- typo just prints the number five after the database
- does not match JupyterLab notebook

**more information**
- code does not need to specify five rows, as pd defaults to this
![image](https://github.com/GoogleCloudPlatform/training-data-analyst/assets/128408671/44d21fda-9aee-483c-ab45-7a24008a2cfb)
- to change the default, you can use:
**pd.set_option('display.max_rows', 10)**
![image](https://github.com/GoogleCloudPlatform/training-data-analyst/assets/128408671/ad11a616-0fad-4857-89bc-3f1bdbf36480)
- otherwise, you can be more specific using head() and tail()
**print(df_transport.head(3))**
**print(df_transport.tail(7))**
![image](https://github.com/GoogleCloudPlatform/training-data-analyst/assets/128408671/8c2bd29e-7ab3-4e2f-8875-73e21c795b2d)

https://github.com/GoogleCloudPlatform/training-data-analyst/blame/ef304517cc93313710241cd74b3a23b3b1cef7ab/courses/machine_learning/deepdive2/launching_into_ml/solutions/improve_data_quality.ipynb#L375

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.