Created
January 6, 2019 16:01
-
-
Save ozgurshn/3aeca1ed81fef56bcdf641ed07416811 to your computer and use it in GitHub Desktop.
MLDataTable from dictionary
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let data: [String: MLDataValueConvertible] = [ | |
| "Title": ["Alice in Wonderland", "Hamlet", "Treasure Island", "Peter Pan"], | |
| "Author": ["Lewis Carroll", "William Shakespeare", "Robert L. Stevenson", "J. M. Barrie"], | |
| "Pages": [124, 98, 280, 94], | |
| ] | |
| var bookTable = try MLDataTable(dictionary: data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment