30 std::tuple<size_t>
shape()
const;
33 [[nodiscard]]
bool empty()
const;
50 const double*
data()
const;
Represents a single column of a DataFrame.
Definition series.h:13
Series()
Constructs an unnamed empty Series.
Series map_elements(const std::function< double(double)> &f) const
size_type size() const
Returns the number of rows in this Series.
Series(std::string name, std::vector< double > values)
Constructs a Series with name and associated values.
const_iterator end() const
Returns an iterator past the last value in *this.
friend Series operator*(const Series &, double)
bool empty() const
Returns true if this Series contains no rows.
friend bool operator==(const Series &, const Series &)
size_t size_type
Definition series.h:16
const_iterator begin() const
Returns an iterator to the first value in *this.
osc::CStringView name() const
Returns the name of this Series.
std::vector< double > to_list() const
Converts this Series into a std::vector of its values.
const_reference operator[](size_type pos) const
Returns a reference to the element at the specified position pos.
double value_type
Definition series.h:15
const double * data() const
const value_type * const_iterator
Definition series.h:18
std::tuple< size_t > shape() const
Returns the shape (rows) of this Series.
const value_type & const_reference
Definition series.h:17
friend Series operator*(double, const Series &)
Definition c_string_view.h:12
Definition copy_on_upd_ptr.h:22
Definition component_registry.h:14
bool operator==(const Series &lhs, const Series &rhs)
Series operator*(double lhs, const Series &rhs)