Signature | Description | Parameters |
---|---|---|
template<typename ... Ts> StdDataFrame<std::string> describe(); |
This function returns a DataFrame indexed by std::string that provides a few statistics about the columns of the calling DataFrame. The statistics are:
|
Ts: List all the types of all data columns. A type should be specified in the list only once. |
static void test_describe() { std::cout << "\nTesting describe( ) ..." << std::endl; typedef StdDataFrame<std::string> StrDataFrame; StrDataFrame df; try { df.read("data/SHORT_IBM.csv", io_format::csv2); auto desc = df.describe<double, long>(); desc.write<std::ostream, double>(std::cout, io_format::csv2); } catch (const DataFrameError &ex) { std::cout << ex.what() << std::endl; } }