Python - For data science Flashcards
What are Jupyter notebooks?
workspaces for interactively developing data science code
What do Jupyter notebooks consist of?
sequential cells, the bracketed numbers indicate the order in which the cells have been executed
How are datasets stored?
In CSV files (these store tables in plain text format, commas are used to separate text in the table)
What is pandas?
A library for data analysis
What is a python library?
Collections of pre-written code and functions
How do you import the python library pandas?
import pandas as pd
How do you import a CVS?
df = pd.read_csv(‘dataset.csv’)
How do you preview a CVS?
df.head()
How do you view the data types in a data frame?
df.dtypes
int64
integers
float64
decimals
object
text
What does it mean if data is categorical?
It comes from a small set of predetermined values
What are variables used for in python?
To store data
How do you define a variable with a value?
variable = value
(eg. months = 12 )