featurebyte.ViewColumn.str.upper¶
upper( ) -> FrozenSeries
Description¶
Converts each string element to upper case.
Returns¶
- FrozenSeries
A new Column or Feature object.
Examples¶
Convert the BrowserUserAgent column to upper case:
>>> view = catalog.get_view("GROCERYCUSTOMER")
>>> view["BrowserUserAgentUpper"] = view["BrowserUserAgent"].str.upper()
>>> view.preview(5).filter(regex="BrowserUserAgent")
BrowserUserAgent BrowserUserAgentUpper
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...