1 min read

Notes for my lesson on Python for Data Science and Machine Learning Bootcamp

Mallim

Here are my notes on my lesson on Python for Data Science and Machine Learning Bootcamp

Anaconda and Jupyter

Followed Getting Started With Jupyter Notebook for Python to have short tour of Jupyter Notebook

Here is a good short guide - Save the Environment with Anaconda on how to create, save, and share portable Python environments for reproducible data science.

And I can continue the course ... Phew...

Dictionary

Or Map in Java

dict = { "key1":"value1", "key2" : 2}

Function

def square(num):
    """
    This is actually a multi-line comment in python.
    Sweet...
    """
    return num ** 2

List comprehension

out = [num ** 2 for num in x]

is equivalent to

for num in x:
    out.append( num ** 2)