Still a String
ADSString expands your feature engineering capabilities, it can still be treated as a
str object. Any standard operation on
str is preserved in
ADSString. For instance, you can convert it to lowercase:
hello_world = "HELLO WORLD" s = ADSString(hello_world) s.lower()
You could split a text string.
You can use all the
str methods, such as the
.replace() method, to replace text.
You can perform a number of
str manipulation operations, such as
.upper() to get an
ADSString object back.
While a new
ADSString object is created with
str manipulation operations, the equality operation holds.
s.lower().upper() == s
The equality operation even holds between
ADSString objects (
str objects (
s == hello_world