featurebyte.ViewColumn.str.lower¶
Description¶
Converts each string element to lower case.
Returns¶
- FrozenSeries
A new Column or Feature object.
Examples¶
Convert the BrowserUserAgent column to lower case:
>>> view = catalog.get_view("GROCERYCUSTOMER")
>>> view["BrowserUserAgentLower"] = view["BrowserUserAgent"].str.lower()
>>> view.preview(5).filter(regex="BrowserUserAgent")
BrowserUserAgent BrowserUserAgentLower
0 Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.3... mozilla/5.0 (windows nt 6.1) applewebkit/537.3...
1 Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:6... mozilla/5.0 (windows nt 10.0; win64; x64; rv:6...
2 Mozilla/5.0 (Windows NT 10.0; Win64; x64) Appl... mozilla/5.0 (windows nt 10.0; win64; x64) appl...
3 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4... mozilla/5.0 (macintosh; intel mac os x 10_14_4...
4 Mozilla/5.0 (Windows NT 6.1; Win64; x64) Apple... mozilla/5.0 (windows nt 6.1; win64; x64) apple...