Your peers in the course week 4 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!
week 4
What are the 2 main data structures in pandas?
Series
week 4
Which is NOT a way you can access data at a certain location using pandas series? As an example, let’s say the series (called ser) has indices ‘apple’ and ‘orange’.
ser.loc['apple','orange']
week 4
Given the following code has run successfully,
import pandas as pd
ser = pd.Series([100, 200, 300, 400, 500], index = ['tom', 'bob', 'nancy', 'dan', 'eric'])
Which of the following calls have the same output?
ser.loc[['tom','bob']]
week 4
If you create a DataFrame using pandas by accessing a column label that doesn’t exist, what values are present in that column?
0
week 4
What is the difference between deleting a column and popping a column?
You can store a deleted column.
week 4
When you import a dataset using the read_csv function in pandas, the rows of the dataset are Series.
True
week 4
What is the default number of rows that the function head() will return for a dataframe in pandas?
8
week 4
Which of the following will display the first 7 rows in a data frame object named df?
df.head(n=7)
week 4
Which of the following statistics does the describe() function NOT return on dataframe columns?
Min
week 4
What is the general syntax for calling the mode() function on a dataframe?
mode(data_frame)
week 4
d = {'one' : pd.Series([100.,200.], index=['apple','orange']),
'two' : pd.Series([111.,211], index=['apple','orange'])}
df = pd.DataFrame(d)
filter = df['one']>100
filter.any()
True
week 4
What does a negative correlation score mean?
There is no correlation between those features in our data set
For your degree program week 4 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 pageStudySmarter 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 4 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.
Best EdTech Startup in Europe