Home > other >  How to convert the column name to display name smartly?
How to convert the column name to display name smartly?

Time:11-12

For example:

  • the column name is "sum(sales)", the display name is "Total Sales"

  • the column name is "avg(sales)", the display name is "Average of Sales"

Any AI methods can do it?

Sorry, I have no ideas.

CodePudding user response:

You don't need AI for this. Simply use a couple of rules to convert it according to the column name.

First split it into the function (sum, avg) and the argument (sales), and then generate the new name accordingly:

  • sum -> "Total " argument
  • avg -> "Average of " argument

etc.

  • Related