Ultimate access to all questions.
Which of the following code blocks correctly splits the storeCategory
column from DataFrame storesDF
at the underscore character, creating two new columns named storeValueCategory
and storeSizeCategory
?
A sample of DataFrame storesDF
is shown below:
storeId open openDate storeCategory
0 true 1100746394 VALUE_MEDIUM
1 true 944572255 MAINSTREAM_SMALL
2 false 925495628 PREMIUM_LARGE
3 true 1397353092 VALUE_MEDIUM
4 true 986505057 VALUE_LARGE
5 true 955988614 PREMIUM_LARGE