Data Cleaning with Pandas (Page 8)

Hi everyone, the example gave the following code as shown below, why do you need to use str for str.split AND str[0]???


Hmm… I think laptops["gpu"].head().split()[0] would be enough…
Maybe it’s done so that we can see where this method comes from.

1 Like