Section 5: Fundamentals for Coding in Python

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

This method of NumPy allows you to apply advanced mathematical station on large numbers of data.

.ndarray

What is the difference between a function and a Method. (2 of 3)

1. A function can have as many parameters as necessary, while the object is one of the parameters needed in a method. 2. A function exists on its own, while a method belongs to a certain class. 3. The systax for function is def function(), while syntax for a method is object.method().

What are the 2 data structures at the core of pandas.

1. Series (single-column data) 2. DataFrames (Multiple-column data)

Write the 4 ways to import the math package and write the square root of 16 with all of them.

1. import math ... math.sqrt(16) 2. from math import sqrt ... sqrt(16) 3. from math import sqrt as s ... s(16) 4. import math import * (avoid using) ... sqrt(16)

True or False: Pandas and NumPy are apart of the standard Jupiter Python library.

False

A pre-written code contain definitions of variables, functions, and classes and can be loaded in all new programs through importing.

Module

The fundamental package for scientific computing with Python for data analyst.

NumPy

Write the code to read all the features related to the math module.

help(math)

Write the conventional syntax to import the numpy package.

import numpy as np

write the syntax to see what version of numpy is being run. Then make sure the version is updated to the latest version in Anaconda.

import numpy as np np.__version__ --> anaconda prompt --> pip install numpy --upgrade

Write the conventional syntax to import the pandas package.

import pandas as pd

Built on NumPy it is a pacake that allows multiple observations over multiple periods of time.

pandas (panel data)

Defines the rules for creating an object.

A Class

Another word used for object in programming.

Instance

A collection/directory of related modules.

Package / Library

Another word used for Attributes in programming.

Properties

Write the shortcut to see documentation of a method in Anaconda.

Shift + Tab

A collection of information stored as written text, illustration, or both, which accompanies the features of the software tool and assists its users.

Software documentation.

True or False: In Python, every value is an object such as floats, integers, strings, lists, and so on...

True

Write the official website for python/python documentation

www.python.org


Kaugnay na mga set ng pag-aaral

Intro-Into-Business: Ch. 9 Learn Smart

View Set

Chapter 10 Prompting and Transfer of Stimulus Control

View Set

Mr. Gerdes U.S. History Chapter 4 test

View Set

Ch. 29 Growth and Development of the Adolescents

View Set