How would I get the documentation for a specific function?
help(func_name)
How do I write documentation in python code?
# this is a comment
How would I see what is the type of an object?
type(‘a’)
How would i install pandas manually?
pip install pandas
How do I import pandas without an alias?
import pandas
How do I import pandas with an alias?
import pandas as pd
How do I import an object from a package?
from pandas import DataFrame
How would I import the operating system package?
import os
How do I get the current directory?
os.getcwd()
How do I set the working directory to a new file path?
os.setcwd(“new/working/directory”)
What do I use to add two numbers?
+
What do i use to subtract two numbers?
-
What do I use to multiply two numbers?
*
What do I use to divide a number by another number?
/
How do I integer divide?
//
How do I raise a number to a power?
How do I get the remainder after division?
%
How do I assign a value to a?
a = 5
How do I change the value of an item in a list?
x[0] = 1
How do I compare equality?
==
How do I test for inequality?
!=
How do I test for greater than?
>
How do I test for greater than or equal to?
> =
How do I test for less than or equal to?
<=