https://github.com/sanogotech/datasciencegooglecolabstarter
Data Science With Google Colab
https://github.com/sanogotech/datasciencegooglecolabstarter
Last synced: about 2 months ago
JSON representation
Data Science With Google Colab
- Host: GitHub
- URL: https://github.com/sanogotech/datasciencegooglecolabstarter
- Owner: sanogotech
- Created: 2022-09-18T17:13:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-18T17:56:27.000Z (over 2 years ago)
- Last Synced: 2025-02-09T00:17:23.202Z (3 months ago)
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Data Science
## Google Colab Python notebook
- https://colab.research.google.com/
- https://www.shanelynn.ie/python-pandas-read-csv-load-data-from-csv-files/## Code Sample
```python
# Load the Pandas libraries with alias 'pd'
import pandas as pd
# Find out your current working directory
import os
print(os.getcwd())
# Out: /Users/shane/Documents/blog
# Display all of the files found in your current working directory
print(os.listdir(os.getcwd())# Read data from file 'filename.csv'
# (in the same directory that your python process is based)
# Control delimiters, rows, column names with read_csv (see later)
data = pd.read_csv("filename.csv")# Preview the first 5 lines of the loaded data
data.head()```