import pandas as pd
sports = pd.Series(['Virat', 'azam', 'fiNch', 'ShakiB', 'STOKES', 'KAne'])
print(s.str.upper())
strings
Quiz
•
Computers
•
University
•
Medium
Ms. Deepika
Used 3+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
import pandas as pd
sports = pd.Series(['Virat', 'azam', 'fiNch', 'ShakiB', 'STOKES', 'KAne'])
print(s.str.upper())
Upper Case:
0 VIRAT
1 AZAM
2 FINCH
3 SHAKIB
4 STOKES
5 KANE
dtype: object
0 VIRAT
1 AZAM
2 FINCH
3 SHAKIB
4 STOKES
5 KANE
dtype: object
error
0 VIRAT
1 AZAM
2 FINCH
4 STOKES
5 KANE
dtype: object
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Returns the index at where the given string is found
find()
split()
replace()
len()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Checks whether the character is uppercase or not
upper()
isupper()
casefold()
none
4.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Identifies the length of the string.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
import pandas as pd
sports = pd.Series(['Virat', 'azam', 'fiNch', 'ShakiB', 'STOKES', 'KAne'])
print((s.str.isupper())
0 False
1 False
2 False
3 True
4 True
5 False
0 False
1 False
2 False
3 True
4 True
5 False
0 False
1 False
2 False
3 False
4 True
5 False
error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
import pandas as pd
sports = pd.Series(['Virat', 'azam', 'fiNch', 'ShakiB', 'STOKES', 'KAne'])
print("Length of strings:")
print(s.str.len())
Length of strings:
0 5
1 4
2 5
3 6
4 6
5 4
dtype: int64
Length of strings:
0 5
1 2
2 5
3 6
4 6
5 4
dtype: int66
Length of strings:
0 6
1 4
2 5
3 6
4 6
5 4
dtype: int64
Length of strings:
0 5
1 4
2 5
3 6
4 6
5 3
dtype: int64
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
import pandas as pd
sports = pd.Series(['Virat', 'azam', 'fiNch', 'ShakiB', 'STOKES', 'KAne'])
print(s.str.split('a'))
error
0 [Vir,at]
1 [a, z, m]
2 [fiNch]
3 [Sha, kiB]
4 [STOKES]
5 [KAne]
dtype: object
0 [Vir, t]
1 [, z, m]
2 [fiNch]
3 [Sh, kiB]
4 [STOKES]
5 [KAne]
dtype: object
none
10 questions
Pandas_Regex
Quiz
•
University
20 questions
Web 3.0 Introductory Meetup
Quiz
•
University
10 questions
Data Visualization Quiz
Quiz
•
University
12 questions
Numpy Quiz 1
Quiz
•
University
15 questions
ACL WEB3 QUIZ
Quiz
•
University
15 questions
[Python For All] Quiz 5 - Numpy
Quiz
•
University
15 questions
Data Analytics using Python - Quiz 2
Quiz
•
University
15 questions
numpy library
Quiz
•
University
25 questions
Equations of Circles
Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)
Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System
Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice
Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers
Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons
Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)
Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review
Quiz
•
10th Grade