Question 41 · 219 in bank
Which of the following code blocks returns a new DataFrame where column division is the first two characters of column division in DataFrame storesDF?
Show answer
Answer: D
Explanation
D would be correct as it asks first two characters. - substr(startIndex: Int, length: Int): This function takes two arguments: -> startIndex: The starting index of the substring to extract. Indexing starts from 0. -> length: The length of the substring to extract.
Source: Adapted from community discussion — azure_bimonster