Login
Remember
Register
Study With Us!
Questions
Unanswered
Users
Ask a Question
Ask a Question
Consider the following Series in Python : data = pd.Series([5, 2, 3, 7], index=['a’, 'b', 'c', 'd’)]
0
votes
asked
Dec 22, 2021
in
Computer Science
by
priya
(
19.0k
points)
Consider the following Series in Python :
data = pd.Series([5, 2, 3, 7], index=['a’, 'b', 'c', 'd’)]
Which statement will display all odd values
(a) print(data%2==0)
(b) print(data(data%2!=0))
(c) print(data mad 2!=0)
(d) print(data[data%2!=0))
class-12
informatics practices
Share It On
Facebook
Twitter
Email
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Dec 22, 2021
by
Haren
(
305k
points)
Correct option is
(d) print(data[data%2!=0))
Please
log in
or
register
to add a comment.
Related questions
0
votes
1
answer
Consider a following DataFrame : import pandas as pd s=pd. Series (data=(31,54,34,89,12,23]) df=pd.DataFrame (s)
asked
Dec 22, 2021
in
Computer Science
by
priya
(
19.0k
points)
class-12
informatics practices
0
votes
1
answer
Pandas is : a. Package b. Language c. Library d. Software
asked
Nov 3, 2021
in
Other
by
Kamal
(
64.9k
points)
class-12
cbse
informatics practices
0
votes
1
answer
Which command will be used to delete 3 and 5 rows of the data frame. Assuming the data frame name as DF.
asked
Nov 3, 2021
in
Other
by
Kamal
(
64.9k
points)
class-12
cbse
informatics practices
0
votes
1
answer
Identify the output of the following Python code D = {1: “one”, 2: “Two”, 3: “Three”}
asked
Dec 21, 2021
in
Computer Science
by
priya
(
19.0k
points)
class-12
0
votes
1
answer
A, B and C were partners sharing P&L in the ratio 5:3:2. A died on 30th June, 2019.
asked
Sep 20, 2022
in
Accountancy
by
priya
(
19.0k
points)
class-12
...