November 2017
Beginner
316 pages
6h 40m
English
After discussing NA and DataArrays, now let's come to the most important data structure provided by the DataFrames module--DataFrame. As previously discussed, they contain extra information about the data they hold, or, in other words, the metadata.
This is how DataFrame is created:
julia> dframe = DataFrame(Names = ["John","Ajay"], Age = [27,28]) 2×2 DataFrames.DataFrame │ Row │ Names │ Age │ ├─────┼────────┼─────┤ │ 1 │ "John" │ 27 │ │ 2 │ "Ajay" │ 28 │
Now this dataset cannot be represented in the form of a DataArray. There are many reasons as to why DataFrames are unique in their purpose, including the following :
They can hold data of different data types. A Matrix, which is just a 2D Array, cannot hold data of different ...
Read now
Unlock full access