6 #ifndef TURI_SFRAME_GROUPBY_AGGREGATE_HPP 7 #define TURI_SFRAME_GROUPBY_AGGREGATE_HPP 13 #include <unordered_set> 14 #include <core/storage/sframe_data/sframe.hpp> 15 #include <core/storage/sframe_data/sframe_constants.hpp> 16 #include <core/storage/sframe_data/group_aggregate_value.hpp> 20 const std::set<std::string> registered_arg_functions = {
"argmax",
"argmin"};
90 const std::vector<std::string>&
keys,
91 const std::vector<std::string>& group_output_columns,
92 const std::vector<std::pair<std::vector<std::string>,
93 std::shared_ptr<group_aggregate_value>>>& groups,
99 #endif //TURI_SFRAME_GROUPBY_AGGREGATE_HPP std::set< Key > keys(const std::map< Key, T > &map)
sframe groupby_aggregate(const sframe &source, const std::vector< std::string > &keys, const std::vector< std::string > &group_output_columns, const std::vector< std::pair< std::vector< std::string >, std::shared_ptr< group_aggregate_value >>> &groups, size_t max_buffer_size=SFRAME_GROUPBY_BUFFER_NUM_ROWS)
size_t SFRAME_GROUPBY_BUFFER_NUM_ROWS