Selecting a column from a dataframe returns a Series, but the .str accessor does not work when column has NaN values. For example running the following:
data = { "Name": ["Apples", "App", "Banana", undefined],
"Count": [NaN, 5, NaN, 10] ,
"Price": [200, 300, 40, 250] }
df = new dfd.DataFrame(data)
name_sf = df.column("Name")
name_sf.str.startsWith("App")
gives the following error:
TypeError: n.startsWith is not a function