Glenda Karen wrote:Is there any way to make the dataframe with header names as well? Something like:
If you use a double (or int) in your constructor, then that 2D array contains all of the data already. So you only need one gouble, and in the constructor you used in your opening post, you then specified all the column names. Isn't that exactly what you wish?
If you cannot use a double in your constructor (for instance when some of the columns are not doubles), then using the constructor with BaseVectors (see thr API and a previous topic) also seems very handy.
And last but least: so you are creating a few extra dataframes. If that does not take hours, or many GigaBytes of memory: so what?
There are three kinds of actuaries: those who can count, and those who can't.