Hi everyone, the example gave the following code as shown below, why do you need to use str for str.split AND str[0]???
laptops["gpu"].head().str.split().str[0]
Hi everyone, the example gave the following code as shown below, why do you need to use str for str.split AND str[0]???
laptops["gpu"].head().str.split().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.