Last active
July 29, 2021 15:22
-
-
Save LosantGists/ea132acb88b1ca907ca706fcae21fb89 to your computer and use it in GitHub Desktop.
Automating Unit Tests Blog (5) 7.23.21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| BATTERY_DATA_FILE = "battery-state-reports-last-30-days.csv" | |
| df = pd.read_csv(os.path.join(os.getcwd(), BATTERY_DATA_FILE)) | |
| df.dtypes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ID object | |
| Timestamp int64 | |
| battery int64 | |
| dtype: object |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| df.head() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ID Timestamp battery | |
| 0 60e44605be3fc900069dcdc6 1.625573e+12 100 | |
| 1 60e44605be3fc900069dcdc7 1.625573e+12 100 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment