**Are you an EPFL student looking for a semester project?**

Work with us on data science and visualisation projects, and deploy your project as an app on top of GraphSearch.

Lecture# Scopes and Lambdas: Data Science with Python

Description

This lecture covers the concepts of scopes, lambdas, and pandas in the context of data science for engineers using Python. Topics include nested declarations, scoping, assignments, functions, lambdas, and pandas manipulation and analysis. The instructor demonstrates the usage of lambdas for sorting, default field values, and the limitations of mutable default values. Additionally, the lecture explores the utilization of pandas for efficient data manipulation and analysis, focusing on Series and DataFrame structures. Practical examples and hands-on exercises are provided to enhance understanding and application of the covered concepts.

Official source

This page is automatically generated and may contain information that is not correct, complete, up-to-date, or relevant to your search query. The same applies to every other page on this website. Please make sure to verify the information with EPFL's official sources.

In course

Instructors (2)

Related concepts (97)

ENG-209: Data science for engineers with Python

Ce cours est divisé en deux partie. La première partie présente le langage Python et les différences notables entre Python et C++ (utilisé dans le cours précédent ICC). La seconde partie est une intro

Nested function

In computer programming, a nested function (or nested procedure or subroutine) is a function which is defined within another function, the enclosing function. Due to simple recursive scope rules, a nested function is itself invisible outside of its immediately enclosing function, but can see (access) all local objects (data, functions, types, etc.) of its immediately enclosing function as well as of any function(s) which, in turn, encloses that function.

Engineering

Engineering is the practice of using natural science, mathematics, and the engineering design process to solve problems, increase efficiency and productivity, and improve systems. Modern engineering comprises many subfields which include designing and creating infrastructure, machinery, vehicles, electronics, materials, and energy. The discipline of engineering encompasses a broad range of more specialized fields of engineering, each with a more specific emphasis on particular areas of applied mathematics, applied science, and types of application.

Sorting

Sorting refers to ordering data in an increasing or decreasing manner according to some linear relationship among the data items. ordering: arranging items in a sequence ordered by some criterion; categorizing: grouping items with similar properties. Ordering items is the combination of categorizing them based on equivalent order, and ordering the categories themselves. In , arranging in an ordered sequence is called "sorting". Sorting is a common operation in many applications, and efficient algorithms have been developed to perform it.

Sorting algorithm

In computer science, a sorting algorithm is an algorithm that puts elements of a list into an order. The most frequently used orders are numerical order and lexicographical order, and either ascending or descending. Efficient sorting is important for optimizing the efficiency of other algorithms (such as search and merge algorithms) that require input data to be in sorted lists. Sorting is also often useful for canonicalizing data and for producing human-readable output.

Trigonometric functions

In mathematics, the trigonometric functions (also called circular functions, angle functions or goniometric functions) are real functions which relate an angle of a right-angled triangle to ratios of two side lengths. They are widely used in all sciences that are related to geometry, such as navigation, solid mechanics, celestial mechanics, geodesy, and many others. They are among the simplest periodic functions, and as such are also widely used for studying periodic phenomena through Fourier analysis.

Related lectures (948)

Data Science: Python for Engineers - Part IIENG-209: Data science for engineers with Python

Explores data wrangling, numerical data handling, and scientific visualization using Python for engineers.

Excel Upgrade: Advanced Functions and Data Analysis

Covers advanced Excel functions and data analysis techniques, including automatic recording and using Solver.

Python Modules and PandasENG-209: Data science for engineers with Python

Introduces Python modules, scoping, lambdas, and pandas for data manipulation and analysis.

Spark Data FramesCOM-490: Large-scale data science for real-world data

Covers Spark Data Frames, distributed collections of data organized into named columns, and the benefits of using them over RDDs.

Data Science Visualization with PandasENG-209: Data science for engineers with Python

Covers data manipulation and exploration using Python with a focus on visualization techniques.