Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/copilot/test/simulation/fixtures/notebook/sales.ipynb
13399 views
Kernel: .venv

Getting and Knowing your Data

Check out Chipotle Exercises Video Tutorial to watch a data scientist go through the exercises

This time we are going to pull data directly from the internet. Special thanks to: https://github.com/justmarkham for sharing the dataset and materials.

Import the necessary libraries

import pandas as pd import numpy as np

Import the dataset from this address.

Assign it to a variable called chipo.

url = "chipotle.tsv" chipo = pd.read_csv(url, sep="\t")

See the first 10 entries

chipo.head(10)

What is the number of observations in the dataset?

chipo.shape[0]
4622

What is the number of columns in the dataset?

chipo.shape[1]
5

Which was the most-ordered item?