Series data accessors
Danfo.js provides data type-specific methods under various accessors. Accessors are namespaces within the Series object that can only be applied/called on specific data types. Two accessors are currently provided for string and date-time Series, and in this section, we'll discuss each and provide some examples for clarity.
String accessors
String columns in DataFrames or a Series with a dtype
string can be accessed under the str
accessor. Calling the str
accessor on such an object exposes numerous string functions for manipulating the data. We will present some examples in this section.
Let's assume we have a Series that contains the following fields:
data = ['lower boy', 'capitals', 'sentence', 'swApCaSe'] sf = new dfd.Series(data) table(sf)
Printing this Series results in the following diagram: