1

i have a datatable like this one :

status
▪▪▪▪
0   abc
1   abc
2   ddd
3   aaa

and I want to replace to :

convert the small letter ot capital letter

status
▪▪▪▪
0   ABC
1   ABC
2   DDD
3   AAA

how to use datatable package to do this one?

i know if my table is dataframe in pandas, I can use:

data['status'] = data['status'].apply(lambda x: x.upper())
yanhei Wu
  • 41
  • 3

1 Answers1

2

can use this way:

data['status'] = dt.Frame([value.upper() for value in data['status'].to_list()[0]])

I got the answer from github: https://github.com/h2oai/datatable/issues/2649

yanhei Wu
  • 41
  • 3