Week 3 at TU München

Flashcards and summaries for Week 3 at the TU München

Arrow Arrow

It’s completely free

studysmarter schule studium
d

4.5 /5

studysmarter schule studium
d

4.8 /5

studysmarter schule studium
d

4.5 /5

studysmarter schule studium
d

4.8 /5

Study with flashcards and summaries for the course Week 3 at the TU München

Exemplary flashcards for Week 3 at the TU München on StudySmarter:

When working with cells in Jupyter, what does “_” refer to?

Exemplary flashcards for Week 3 at the TU München on StudySmarter:

Code in the Jupyter code cells are restricted to being one line.

Exemplary flashcards for Week 3 at the TU München on StudySmarter:

Using markdown cells in Jupyter, how do you format text as bold?

This was only a preview of our StudySmarter flashcards.
Flascard Icon Flascard Icon

Millions of flashcards created by students

Flascard Icon Flascard Icon

Create your own flashcards as quick as possible

Flascard Icon Flascard Icon

Learning-Assistant with spaced repetition algorithm

Sign up for free!

Exemplary flashcards for Week 3 at the TU München on StudySmarter:

What are the 3 reasons that data scientists working in Python use numpy all the time?

Exemplary flashcards for Week 3 at the TU München on StudySmarter:

Elements in numpy arrays must be all the same type.

Exemplary flashcards for Week 3 at the TU München on StudySmarter:

ndarrays are mutable.

Exemplary flashcards for Week 3 at the TU München on StudySmarter:

Look at the following code:

b = np.array([1,2,3])
b[1] = 'one'


What error prints out after you run these two lines of code?

This was only a preview of our StudySmarter flashcards.
Flascard Icon Flascard Icon

Millions of flashcards created by students

Flascard Icon Flascard Icon

Create your own flashcards as quick as possible

Flascard Icon Flascard Icon

Learning-Assistant with spaced repetition algorithm

Sign up for free!

Exemplary flashcards for Week 3 at the TU München on StudySmarter:

How do you create an Rank 1 array with numpy using the numbers 1, 2, 3?

Exemplary flashcards for Week 3 at the TU München on StudySmarter:

There is a syntax error in the code below.

np.array( [11,12,13],[21,22,23] )


How would you fix it to create the intended 2x3 array?

Exemplary flashcards for Week 3 at the TU München on StudySmarter:

How would you change the number 5 to 7 in this matrix?

arr = np.array([1,2,3,4,5])

Exemplary flashcards for Week 3 at the TU München on StudySmarter:

Given the code below:


arr = np.array([[1,2,3,4],[5,6,7,8],[9,10,11,12]])


Which of the following two commands below produce the same result?

This was only a preview of our StudySmarter flashcards.
Flascard Icon Flascard Icon

Millions of flashcards created by students

Flascard Icon Flascard Icon

Create your own flashcards as quick as possible

Flascard Icon Flascard Icon

Learning-Assistant with spaced repetition algorithm

Sign up for free!

Exemplary flashcards for Week 3 at the TU München on StudySmarter:

If you try to access rows of a 3-by-3 numpy array called “arr” using the command:

arr[:2,]

How many rows will be returned?

Your peers in the course Week 3 at the TU München create and share summaries, flashcards, study plans and other learning materials with the intelligent StudySmarter learning app.

Get started now!

Flashcard Flashcard

Exemplary flashcards for Week 3 at the TU München on StudySmarter:

Week 3

When working with cells in Jupyter, what does “_” refer to?

The output of the last cell executed.

Week 3

Code in the Jupyter code cells are restricted to being one line.

False

Week 3

Using markdown cells in Jupyter, how do you format text as bold?

**word**

Week 3

What are the 3 reasons that data scientists working in Python use numpy all the time?

Its speed.

Week 3

Elements in numpy arrays must be all the same type.

True

Week 3

ndarrays are mutable.

True

Week 3

Look at the following code:

b = np.array([1,2,3])
b[1] = 'one'


What error prints out after you run these two lines of code?


ValueError

Week 3

How do you create an Rank 1 array with numpy using the numbers 1, 2, 3?


np.ndarray([1,2,3])

Week 3

There is a syntax error in the code below.

np.array( [11,12,13],[21,22,23] )


How would you fix it to create the intended 2x3 array?

np.array( [[11,12,13],[21,22,23]] )

Week 3

How would you change the number 5 to 7 in this matrix?

arr = np.array([1,2,3,4,5])

arr[0,5] = 7

Week 3

Given the code below:


arr = np.array([[1,2,3,4],[5,6,7,8],[9,10,11,12]])


Which of the following two commands below produce the same result?

arr[0:1,1:3]

Week 3

If you try to access rows of a 3-by-3 numpy array called “arr” using the command:

arr[:2,]

How many rows will be returned?

2

Sign up for free to see all flashcards and summaries for Week 3 at the TU München

Singup Image Singup Image
Wave

Other courses from your degree program

For your degree program Week 3 at the TU München there are already many courses on StudySmarter, waiting for you to join them. Get access to flashcards, summaries, and much more.

Back to TU München overview page

week 4

week 5

week 7

week 8

GIP Week 3

What is StudySmarter?

What is StudySmarter?

StudySmarter is an intelligent learning tool for students. With StudySmarter you can easily and efficiently create flashcards, summaries, mind maps, study plans and more. Create your own flashcards e.g. for Week 3 at the TU München or access thousands of learning materials created by your fellow students. Whether at your own university or at other universities. Hundreds of thousands of students use StudySmarter to efficiently prepare for their exams. Available on the Web, Android & iOS. It’s completely free.

Awards

Best EdTech Startup in Europe

Awards
Awards

EUROPEAN YOUTH AWARD IN SMART LEARNING

Awards
Awards

BEST EDTECH STARTUP IN GERMANY

Awards
Awards

Best EdTech Startup in Europe

Awards
Awards

EUROPEAN YOUTH AWARD IN SMART LEARNING

Awards
Awards

BEST EDTECH STARTUP IN GERMANY

Awards
X

StudySmarter - The study app for students

StudySmarter

4.5 Stars 1100 Rating
Start now!
X

Good grades at university? No problem with StudySmarter!

89% of StudySmarter users achieve better grades at university.

50 Mio Flashcards & Summaries
Create your own content with Smart Tools
Individual Learning-Plan

Learn with over 1 million users on StudySmarter.

Already registered? Just go to Login