Skip to content

Instantly share code, notes, and snippets.

@olekscode
Created August 2, 2019 14:12
Show Gist options
  • Save olekscode/fd1afdb9a33634a472f8fa43f6313c61 to your computer and use it in GitHub Desktop.
Save olekscode/fd1afdb9a33634a472f8fa43f6313c61 to your computer and use it in GitHub Desktop.
orders := DataFrame
withRows:
#( ( 1 '07/04/1776' '$234.56' 1 )
( 2 '03/14/1760' '$78.50' 3 )
( 3 '05/23/1784' '$124.00' 2 )
( 4 '09/03/1790' '$65.50' 3 )
( 5 '07/21/1795' '$25.50' 10 )
( 6 '11/27/1787' '$14.40' 9 ) )
columnNames: #( order_id order_date amount customer_id ).
orders toColumn: #order_date applyElementwise: #asDate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment