Skip to content

The str accessor does not work on columns selected using the .columns property #181

@risenW

Description

@risenW

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or requestgood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions