Data-flo Docs
  • About Data-flo
    • Data-flo Major Update in April 2024
      • Migrating your workflows into the latest version of Data-flo
        • Streamlined adaptors
        • Deprecated adaptors
        • New and retained adaptors
    • Change Log
    • Privacy and Terms of Service
    • Open source software used by Data-flo
  • Data-flo Basics
    • Account
    • Navigation
    • Terminology
    • Interface Icons
    • Data-flo's building blocks: Adaptors
      • Using adaptors to import data
      • Using adaptors to process data
      • Using adaptors to export data
    • Combining adaptors to create workflows
      • Creating a workflow
        • Building a workflow from scratch
        • Cloning an existing workflow
        • Importing a .dataflo file
      • Testing your workflows
      • Running your workflows
      • Accessing your workflows
  • Adaptor reference guide
    • add-column
    • add-jittering
    • add-value-to-dictionary
    • aggregate-rows
    • append-datatables
    • append-lists
    • append-to-list
    • apply-force-directed-layout
    • calculate-column
    • calculate-time-difference
    • change-column-case
    • compare-columns
    • concatenate-columns
    • concatenate-text
    • convert-date-to-text
    • convert-list-to-datatable
    • convert-text-to-datatable
    • convert-text-to-list
    • create-dictionary-from-datatable
    • create-google-drive-folder
    • create-graph-from-datatable
    • create-graph-from-dot
    • create-list-from-datatable
    • create-text-from-template
    • duplicate-column
    • export-file-to-google-drive
    • export-file-to-smb-share
    • export-graph-to-dot-file
    • export-text-to-file
    • export-to-csv-file
    • export-to-dbf-file
    • export-to-google-sheet
    • export-to-microreact-project
    • export-to-sqlite-file
    • filter-list
    • filter-rows
    • find-value-in-dictionary
    • find-value-in-list
    • format-date-column
    • format-time-column
    • geocoding
    • import-file-from-dropbox
    • import-file-from-figshare
    • import-file-from-google-drive
    • import-file-from-http-request
    • import-file-from-s3
    • import-file-from-smb-share
    • import-file-from-url
    • import-from-csv-file
    • import-from-dbf-file
    • import-from-epicollect-project
    • import-from-excel-file
    • import-from-google-sheet
    • import-from-json-file
    • import-from-microreact-project
    • import-from-mysql
    • import-from-oracle
    • import-from-postgres
    • import-from-spreadsheet-file
    • import-from-sql-server
    • import-from-sqlite
    • import-list-from-text-file
    • import-text-from-file
    • join-datatables
    • list-datatable-columns
    • list-newick-leaf-labels
    • map-column-values
    • prepend-to-list
    • query-datatable
    • remove-columns
    • remove-duplicate-list-values
    • remove-duplicate-rows
    • rename-columns
    • rename-newick-leaf-labels
    • replace-blank-values
    • replace-values-in-columns
    • replace-values-in-list
    • replace-values-in-text
    • reshape-long-to-wide
    • reshape-wide-to-long
    • reverse-geocoding
    • run-openai-model
    • run-replicate-model
    • run-workflow
    • sample-datatable
    • select-columns
    • select-list-values
    • select-rows
    • send-email-message
    • sort-datatable
    • sort-list
    • split-column
    • split-geographical-coordinates
    • split-list
    • summarise-datatable
    • transform-columns
    • workflow-repeater
  • Applying Data-flo
    • Basics in Minutes!
      • Quick Workflow
        • Step 1: Configure a solo adapter to view data.
        • Step 2: Add and link a second adaptor.
        • Step 3: Add a value.
        • Step 4: Complete the workflow.
        • Step 5: Run the workflow.
        • Step 6: Share the workflow.
  • API
    • Data-flo API
    • API Access Tokens
  • Support
    • Contact and Feedback
    • Private Installations
Powered by GitBook
On this page
  • Description
  • Inputs
  • Outputs
  • Examples
  • Example 1: Standardize values in a column.
  • Use Cases
  1. Adaptor reference guide

change-column-case

Description

change-column-case adaptor converts the case of text values in a datatable column to a specified format.

The list of supported case patterns are:

  • camel case: text with the separator denoted by the next word capitalised. OfMice and men → ofMiceAndMen

  • capital case: space separated text with each word capitalised. OfMice and men → Of Mice And Men

  • constant case: upper case text with an underscore between words. OfMice and men → OF_MICE_AND_MEN

  • dot case: lower case string with a period between words. OfMice and men → of.mice.and.men

  • header case: dash separated string of capitalised words. OfMice and men → Of-Mice-And-Men

  • hyphen case: lower cased string with dashes between words (same as kebab case). OfMice and men → of-mice-and-men

  • kebab case: lower cased string with dashes between words (same as hyphen case). OfMice and men → of-mice-and-men

  • lower case: text with all letters lower case. OfMice and men → ofmice and men

  • no case: lower cased string with spaces between words. OfMice and men → of mice and men

  • param case: lower cased string with dashes between words (same as kebab case). OfMice and men → of-mice-and-men

  • pascal case: string of capitalised words without separators. OfMice and men → OfMiceAndMen

  • path case: lower case string with slashes between words. OfMice and men → of/mice/and/men

  • sentence case: lower case with spaces between words and capitalised first letter. OfMice and men → Of mice and men

  • snake case: lower case string with underscores between words. OfMice and men → of_mice_and_men

  • sponge case: string with random capitalisation applied. OfMice and men → oFmiCe anD mEN

  • swap case: swaps every character from upper to lower case, or lower to upper case. OfMice and men → oFmICE AND MEN

  • title case: a mixed-case style following English language rules. OfMice and men → OfMice and Men

  • upper case: text with all letters upper case. OfMice and men → OFMICE AND MEN

Inputs

data Type: datatable Required: Yes The datatable containing the column to be converted.

column Type: text Required: Yes The column to be converted.

case Type: text Required: Yes One of the supported case patterns.

Outputs

data Type: datatable A datatable with target column added.

Examples

Example 1: Standardize values in a column.

Inputs:

data:

Sample ID
Sex

Sample A

female

Sample B

MALE

Sample C

male

Sample D

Female

Sample E

FEMALE

Sample F

Male

column: Sex

case: upper case

Outputs:

data:

Sample ID
Sex

Sample A

FEMALE

Sample B

MALE

Sample C

MALE

Sample D

FEMALE

Sample E

FEMALE

Sample F

MALE

-> Standardized the values in column Sex by converting it to uppercase.

Use Cases

  • In categorical variables, changing the case can be part of the process of converting data to a consistent format so certain variables can be treated as the same category regardless of case, aiding in data visualisation.

  • When comparing or matching strings, it's often beneficial to have consistent cases

  • In the process of cleaning and preprocessing data, changing the cases can help identify and handle duplicates more effectively. It aids in detecting and merging records that might have the same information but with different capitalization.

  • Standardizing cases is essential for proper sorting and grouping of data. Without consistent cases, sorting operations may not produce the desired order, and groupings may not capture all similar items due to case variations.

Previouscalculate-time-differenceNextcompare-columns

Last updated 1 year ago