To use the function, throw it in the "Code Block", then you can use this as your expression: dedupe(!Area!). When I said "change the strings" I meant you can replace things like "," or "" to make the function split and join the results differently.
For context: the calculator runs all of the Python code in the code block before doing anything else, then for every selected record the calculator:
- Grabs every field that has a pair of exclamation marks (!Area! in our example).
- Does any data conversions it has to (usually only relevant for date or geometry fields).
- Converts the expression you gave it into its complete state.
- Evaluates the expression.
- Stores that result in the field you're calculating
In our case, the expression will evaluate to dedupe(123.45), dedupe(23.43), dedupe(None) or whatever is in each record's Area attribute. Hope this helps you get a handle on how the field calculator runs.