stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
salomon_test_easy Flashcards | StudBud
Explore
/
salomon_test_easy
salomon_test_easy
38 terms
·
StudBud Administration
·
6 plays
Imported from external platform
Flashcards
38 cards
F
Practice quiz
P
Host live
L
Questions
38
Answers
1
Find the ERROR, Suppose dict1={"a":1,"b":2,"c":3}
dict1["a"]=5
print dict1
print(len(dict1))
print(dict1.get("b"))
2
What is the output of expression 3*1**3?
1
3
27
9
3
What is a correct syntax to return the first row in a Pandas DataFrame?
df.get(0)
df[0]
df.loc[0]
4
Which keyword is use for function?
define
Def
function
fun
5
If return statement is not used inside the function, the function will return:
arbitrary value
null
none
0
6
What is a correct syntax to create a Pandas DataFrame?
pd.dataframe(data)
pd.DataFrame(data)
pd.df(data)
df_to_DataFrame(data)
7
What is in numpy package
Fundamental package for data analysis
List
Fourier Transform
Object
8
Way to install the pandas library
python install pandas
install pandas
pip install pandas
pandas install python
9
What is a correct method to fill empty cells with a new value?
replacena()
value_replace()
insert()
fillna()
10
What is the output of print( L.count(8)) if L=[3,8,1,6,0,8,4]
5
2
-5
1
11
What we pass in dataframe in pandas
panda series
string
integer
float
12
What is a correct method to plot (draw) diagrams from the data in a DataFrame?
df.pyplot()
df.plot()
df.draw()
13
In data science,which of the python library was more popular
piango
pandas
numpy
Opencv
14
What is a correct Pandas method for removing rows that contains empty cells?
dropNan()
dropna()
removeNa()
delete_null
15
Which is not a core data type object
class
list
dict
tuple
16
What is a correct syntax to create a Pandas Series from a Python list?
pd.Series(mylist)
pd.createSeries(mylist)
pd.getSeries(mylist)
pd.series(mylist)
17
What is the output of [‘Hi!’] * 4
[‘Hi!’, ‘Hi!’, ‘Hi!’, ‘Hi!’]
HI!
‘Hi!’, ‘Hi!’, ‘Hi!’, ‘Hi!’
[‘Hi!’] [‘Hi!’] [‘Hi!’] [‘Hi!’]
18
What is a correct syntax to return both the first row and the second row in a Pandas DataFrame?
df.loc[[0,1]]
df.[[0,1]
df.loc[[0-1]]
df.[[0-1]]
19
Which function will find the length of a string?
Strlen()
Stringlength()
length()
len()
20
What is answer of this expression 22%3 is?
1
7
3
0
21
Analyze the data in pandas with
all the above
series
array
dataframe
22
_______is output of print([i.lower() for i in "HELLO"])
hello'
['hello']
[‘h’, ‘e’, ‘l’, ‘l’, ‘o’].
hello
23
What is a variable defined outside a function referred to as?
automatic variable
local variable
static variable
global variable
24
What is a correct syntax to load a Python Dictionary called "data" into a Pandas DataFrame?
pd.readdictionnary(data)
pd.DataFrame(data)
pd.load_json(data)
25
which function from the options given below can read the dataset from a large text file?
Read_ison
Read_hdf
Read_csv
Read_pickle
26
WHAT IS PYTHON MOST COMMONLY USED FOR
Database Management
Enterprise Development
Web Programming
E-Commerce
27
What is a correct method to find relationships between column in a DataFrame?
df.corr()
df.correlation()
28
Mean, Median, Mode. Which one returns the value that appears most frequently?
mean()
median()
mode()
idxmax()
29
Suppose list1 is [3, 5, 25, 1, 3], what is min(list1) ?
5
3
25
1
30
What is a correct method to discover if a row is a duplicate?
df.duplicate()
df.duplicated()
df(dup)
31
Which of these about a dictionary is false
The keys of a dictionary can be accessed using values
The values of a dictionary can be accessed using keys
Dictionary is mutable
Dictionaries ar not ordered
32
This function in the library of Pandas allows you to manipulate data and create new variables------------
Read_csv function
pivot function
apply function
merge function
33
What is a correct Pandas method for returning the last rows?
last()
tail()
foot()
end()
34
comprehension list are functions ?
False
True
35
What is the output of print( L.index(8)) if L=[3,8,1,6,0,8,4]
2
-2
1
5
36
What is called when a function is defined inside a class?
Class
Method
Module
Another Function
37
What is the MatPlot library used for primarily?
Plotting Data
Mathematical Operations
List Operations
38
True or false: by default, the Pandas dropna() method returns a new DataFrame, and will not change the original.
True
False