description |
---|
Accessor object for String-like properties of Series values. |
For example, in the following example, we convert a Series to an Str
instance and apply a couple of String methods.
{% tabs %} {% tab title="Node" %}
import { Str, Series } from "danfojs-node"
const sf = new Series(["Dog", "Cat", "Bird", "Fish", "ShArk", "tiGer"])
const sfStr = new Str(sf)
sfStr.toLowerCase().print()
sfStr.toUpperCase().print()
sfStr.join("Added", "-").print()
{% endtab %} {% endtabs %}
// output
βββββ€ββββββββ
β 0 β dog β
βββββΌββββββββ’
β 1 β cat β
βββββΌββββββββ’
β 2 β bird β
βββββΌββββββββ’
β 3 β fish β
βββββΌββββββββ’
β 4 β shark β
βββββΌββββββββ’
β 5 β tiger β
βββββ§ββββββββ
βββββ€ββββββββ
β 0 β DOG β
βββββΌββββββββ’
β 1 β CAT β
βββββΌββββββββ’
β 2 β BIRD β
βββββΌββββββββ’
β 3 β FISH β
βββββΌββββββββ’
β 4 β SHARK β
βββββΌββββββββ’
β 5 β TIGER β
βββββ§ββββββββ
βββββ€ββββββββββββββ
β 0 β Dog-Added β
βββββΌββββββββββββββ’
β 1 β Cat-Added β
βββββΌββββββββββββββ’
β 2 β Bird-Added β
βββββΌββββββββββββββ’
β 3 β Fish-Added β
βββββΌββββββββββββββ’
β 4 β ShArk-Added β
βββββΌββββββββββββββ’
β 5 β tiGer-Added β
βββββ§ββββββββββββββ