DATA LINK LAYER WIRED NETWORKS
MULTIPLE ACCESS PROTOCOLS MAC
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
what is padding in a data frame?
|
adding 0’s to the data
|
|
adding 0’s to left handside of the data
|
|
adding 0’s to right hand side of the data
|
|
adding 1’s to the data
|
Explanation:
Detailed explanation-1: -You can also left pad a string in Python with zeros using the zfill() function. We just have to specify the number of characters that you want to fill in with zeroes as parameter. This method returns a string with the given number of strings as output.
Detailed explanation-2: -To add padding to a column of strings, use the Series’ str. pad( ) method.
Detailed explanation-3: -pad() function is used to pad strings in the Series/Index up to width. Minimum width of resulting string; additional characters will be filled with character defined in fillchar. Side from which to fill resulting string. Additional character for filling, default is whitespace.
There is 1 question to complete.