logo

Crowdly

Programing with Python / Programmation avec Python (202400-META-IDSI1121-BBA1)

Looking for Programing with Python / Programmation avec Python (202400-META-IDSI1121-BBA1) test answers and solutions? Browse our comprehensive collection of verified answers for Programing with Python / Programmation avec Python (202400-META-IDSI1121-BBA1) at moodle.essec.fr.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

What’s the output of the following Python program?

l1 = np.array([10, 20, 30, 40, 50])

print(np.logical_and(l1>20, l1<40))

0%
0%
100%
0%
View this question
What’s the output of the following Python program?

l1 = [10, 20, 30, 40, 50]

l2 = [20, 30, 50, 40, 70]

np.array(l1) < np.array(l2)

0%
0%
100%
0%
View this question
I have a pandas dataframe named 'brics' with columns names given by 'country', 'capital', 'area' and 'population' and indices given by 'FR', 'IT' and 'UK'. I want to construct a pandas dataframe with the only two columns 'country' and 'capital' and only for the indices 'FR' and 'IT'. Which command should I use?
100%
0%
0%
0%
View this question
I have a pandas dataframe named 'brics' with columns names given by 'country', 'capital', 'area' and 'population'. I want to construct a pandas dataframe with the only two columns 'country' and 'capital'. Which command should I use?
0%
100%
0%
View this question
What’s the output of the following Python program?

capitals = {'Spain': 'Madrid', 'France': 'Paris'}

capitals['Spain']

0%
100%
0%
0%
View this question
I have a dataset in the form of a csv file. Which package should we use to work with these data in python?
0%
0%
100%
0%
View this question
I want to store the population's size of 10 countries. Which data container should I use?
100%
0%
0%
0%
View this question
What are the keys of the following dictionary?

capitals = {'Spain': 'Madrid', 'France': 'Paris'}

0%
0%
100%
0%
View this question
I have a dataset in the form of a csv file 'data.csv'. I want to construct a pandas dataframe out of it. However, I want pandas to use the first column of my csv file to be the index of the dataframe. Which command should I use?
0%
0%
100%
100%
View this question
I have a dataset in the form of a csv file 'data.csv'. Which command can I use to import my data into my python environement?
0%
100%
0%
0%
View this question

Want instant access to all verified answers on moodle.essec.fr?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!