MCPcopy Create free account
hub / github.com/javascriptdata/danfojs / str

Method str

src/danfojs-base/core/series.ts:1944–1950  ·  view source on GitHub ↗

* Exposes numerous string methods to manipulate Series of string dtype * @example * ``` * const sf = new Series(["a", "b", "c", "d", "e", "f", "g", "h", "i", "j"]); * const sfs = sf.str.join("HelloWorld", ""); * console.log(sfs.values); * //output ["aHelloWorld", "bHell

()

Source from the content-addressed store, hash-verified

1942 * ```
1943 */
1944 get str() {
1945 if (this.dtypes[0] == "string") {
1946 return new Str(this);
1947 } else {
1948 throw new Error("Cannot call accessor str on non-string type");
1949 }
1950 }
1951
1952 /**
1953 * Returns time class that exposes different date time method

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected