2D NumPy Arrays from:https://campus.datacamp.com/courses/intro-to-python-for-data-science/chapter-4-numpy?ex=9 Your First 2D NumPy Array # Create baseball, a list of listsbaseball = [[180, 78.4],[215, 102.7],[210, 98.5],[188, 75.2]] # Import numpyimp…
NumPy: Basic Statistics from:https://campus.datacamp.com/courses/intro-to-python-for-data-science/chapter-4-numpy?ex=13 Average versus median You now know how to use numpy functions to get a better feeling for your data. It basically comes down to im…
NumPy From:https://campus.datacamp.com/courses/intro-to-python-for-data-science/chapter-4-numpy?ex=1 Your First NumPy Array # Create list baseballbaseball = [180, 215, 210, 210, 188, 176, 209, 200] # Import the numpy package as npimport numpy as np #…
Packages From:https://campus.datacamp.com/courses/intro-to-python-for-data-science/chapter-3-functions-and-packages?ex=10 Import package As a data scientist, some notions of geometry never hurt. Let's refresh some of the basics.We can do this by impo…
List from:https://campus.datacamp.com/courses/intro-to-python-for-data-science/chapter-2-python-lists?ex=2 -----------------1------------------------------------- Create a list As opposed to int, bool etc., a list is a compound data type; you can gro…
Methods From:https://campus.datacamp.com/courses/intro-to-python-for-data-science/chapter-3-functions-and-packages?ex=6 String Methods Strings come with a bunch of methods. Follow the instructions closely to discover some of them. If you want to disc…
Functions from:https://campus.datacamp.com/courses/intro-to-python-for-data-science/chapter-3-functions-and-packages?ex=1 Familiar functions output = function_name(input)such as result = type(3.0) # Create variables var1 and var2var1 = [1, 2, 3, 4]va…
Histograms from:https://campus.datacamp.com/courses/intermediate-python-for-data-science/matplotlib?ex=7 Build a histogram (1) life_exp, the list containing data on the life expectancy for different countries in 2007, is available in your Python shel…
Basic plots with matplotlib from:https://campus.datacamp.com/courses/intermediate-python-for-data-science/matplotlib?ex=1 Line plot (1) With matplotlib, you can create a bunch of different plots in Python. The most basic plot is the line plot. A gene…
Customization from:https://campus.datacamp.com/courses/intermediate-python-for-data-science/matplotlib?ex=13 Labels It's time to customize your own plot. This is the fun part, you will see your plot come to life! # Basic scatter plot, log scaleplt.sc…