6.5) Python Loop, List Comprehension, and Lambda Function

preview_player
Показать описание
1.1) Why Python?

1.2) Why run Python code in Google Colab?

1.3) Why learn Python in DataCamp?

1.4) Why learn Python in Dataquest?

1.5) Introduction to Markdown in Google Colab

1.6) Learn Latex in Google Colab

1.7) Upload Data in Github to Open in Google Colab

2.1) NumPy: Data Types

2.2) NumPy: Creating Array

2.3) NumPy: Increment Operator

2.4) NumPy: Mean, Standard Deviation

3.1) Pandas: Introduction to Series

3.2) Pandas: DataFrame

3.3) Pandas: Reading Excel Files in Google Colab

3.4) Pandas: Reading CSV or Text Files in Google Colab

3.5) Pandas: Merging Dataframes

3.6) Pandas Concatenate or Append Function

3.7) Pandas: Pivoting from "Long" to "Wide" Format

3.8) Pandas: Mean of a Variable with Conditions

3.9) Pandas: Recode Categorical Variable

3.10) Pandas: Filter Columns and Rows

3.11) Load Excel/CSV Files into Google Colab

3.12) Series vs Dataframe vs MultiIndex (Panel)

4.1) Matplotlib: Introduction

4.2) Matplotlib: Boxplot and Histogram

4.3) Matplotlib: Scatterplot

4.4) Matplotlib: Figure vs Axis

5.1) Plotly: Dynamic Scatterplot with Clusters

5.2) Plotly: Dynamic Histogram with Vertical Line

5.3) Plotly: Bar Chart

6.1) Python: Function, Conditional Statement, Data Transformation

6.2) Python: Loop over List, String, Dictionary, and Numpy Array

6.3) Fibonacci: Recursion vs Loop

6.4) Python: Loop to Simulate Coin Tosses

6.5) Python Loop, List Comprehension, and Lambda Function

6.6) Python: *args vs **kwargs

6.7) What the Arrow Means in Python Function Definition?

7.1) Everything in Python is an Object

7.2) Learn How to Create a Class in Python

8.1) DataCamp Signal Assessment: Python Programming
Рекомендации по теме
Комментарии
Автор

Can we map more than two variables using a lambda function?

yahiaabdelbar
Автор

In the video, you used 'if x % 2 == 0' to retrieve only the even numbers of the list. Theoretically, if we wanted to retrieve only the odd numbers of a list, how would you code this? I see using 'x % 3 == 0' would not work consistently. Can we use multiple 'if' statements?

aaronpopyk
Автор

What are the limitations of the "range" here? Is it only single numbers or could we connect it to a list of numbers from a column in a table?

waleedsharkas
Автор

Is there a way to we can derive the range of x provided we have a mathematical function and a parameter of the output? For example, if we wanted the range of the values of x for y=x^2 provided y<49.

stephanieprice-cummings
Автор

What is the difference between lambda function and list comprehensive

ramaraomv
Автор

are there any other advantages of Lambda function other than shortening the code? From what I understand lambda is great to use for in-line, adhoc & simple loop and if we want to use more complex loops we need to do it separately, but I'm not sure if there are other cases that lambda is more preferable than the normal loop

tellmesomethingsweet
join shbcf.ru