|
DAWorkbench 0.0.1
DAWorkbench API
|
对Pandas.Series的Qt封装 更多...
#include <DAPySeries.h>
Public 成员函数 | |
| DAPySeries (const DAPySeries &s) | |
| DAPySeries (DAPySeries &&s) | |
| DAPySeries (const pybind11::object &obj) | |
| DAPySeries (pybind11::object &&obj) | |
| DAPySeries & | operator= (const pybind11::object &obj) |
| DAPySeries & | operator= (const DAPySeries &s) |
| DAPySeries & | operator= (const DAPyObjectWrapper &obj) |
| DAPySeries & | operator= (pybind11::object &&obj) |
| DAPySeries & | operator= (DAPySeries &&s) |
| DAPySeries & | operator= (DAPyObjectWrapper &&obj) |
| pybind11::object | operator[] (std::size_t i) const |
| pybind11::object | operator[] (const QString &colName) const |
| 针对索引是字符串的场景 | |
| pybind11::dtype | dtype () const |
| Return the dtype object of the underlying data. | |
| bool | empty () const |
| Indicator whether Series/DataFrame is empty. | |
| std::size_t | size () const |
| Series.size | |
| QString | name () const |
| Series.name | |
| pybind11::object | iat (std::size_t i) const |
| DASeries::iat Access a single value for a row/column pair by integer position. | |
| void | iat (std::size_t r, const pybind11::object &v) |
| QVariant | value (std::size_t i) const |
| bool | setValue (std::size_t i, const QVariant &v) |
| bool | isNumeric () const |
| bool | isDateTime () const |
| bool | isString () const |
| bool | isCategorical () const |
| DAPyIndex | index () const |
| QStringList | indexAsStringList () const |
| QVector< double > | indexAsDoubleVector () const |
| QVector< QDateTime > | indexAsDateTimeVector () const |
| DAPySeries | astype (const pybind11::dtype &dt) const |
| DAPySeries | toDateTime () const |
| template<typename T , typename VectLikeIte > | |
| void | castTo (VectLikeIte begin) const |
| 把series转换为一个容器数组 | |
| QString | toString (std::size_t maxele=12) const |
Public 成员函数 继承自 DA::DAPyObjectWrapper | |
| DAPyObjectWrapper (const DAPyObjectWrapper &obj) | |
| DAPyObjectWrapper (DAPyObjectWrapper &&obj) | |
| DAPyObjectWrapper (const pybind11::object &obj) | |
| DAPyObjectWrapper (pybind11::object &&obj) | |
| bool | isNone () const |
| DAPyObjectWrapper & | operator= (const DAPyObjectWrapper &obj) |
| DAPyObjectWrapper & | operator= (DAPyObjectWrapper &&obj) |
| DAPyObjectWrapper & | operator= (const pybind11::object &obj) |
| DAPyObjectWrapper & | operator= (pybind11::object &&obj) |
| bool | operator== (void *ptr) const |
| bool | operator== (const pybind11::object &obj) const |
| bool | operator== (const DAPyObjectWrapper &obj) const |
| bool | operator!= (void *ptr) const |
| bool | operator!= (const pybind11::object &obj) const |
| bool | operator!= (const DAPyObjectWrapper &obj) const |
| operator bool () const | |
| void | dealException (const std::exception &e) const |
| 统一的异常处理函数 | |
| DAPyObjectWrapper | deepCopy () const |
| 深拷贝 | |
| pybind11::object & | object () |
| const pybind11::object & | object () const |
| QVariant | toVariant () const |
| bool | isinstance (const pybind11::handle &type) const |
| bool | isInt () const |
| 是否为int | |
| bool | isModule () const |
| 是否为Module | |
| bool | isFloat () const |
| 是否为float | |
| bool | isStr () const |
| 是否为str | |
| bool | isBool () const |
| bool | isList () const |
| bool | isDict () const |
| bool | isTuple () const |
| bool | isCallable () const |
| bool | isSequence () const |
| bool | isNumeric () const |
| void | setErrCallback (const ErrCallback &fun) |
| 设置错误处理回调 | |
| ErrCallback | getErrCallback () const |
| pybind11::object | attr (const char *c_att) |
| 获取属性 | |
| pybind11::object | attr (const char *c_att) const |
| template<typename... Args> | |
| pybind11::object | call (Args &&... args) |
| 直接调用Python可调用对象 | |
| QString | __name__ () const |
| 对应__name__ | |
| QString | __str__ () const |
| QString | __repr__ () const |
| QString | typeName () const |
| size_t | refCount () const |
静态 Public 成员函数 | |
| static bool | isSeries (const pybind11::object &obj) |
Protected 成员函数 | |
| void | checkObjectValid () |
额外继承的成员函数 | |
Public 类型 继承自 DA::DAPyObjectWrapper | |
| using | ErrCallback = std::function< void(const char *) > |
| 异常错误回调函数 | |
Protected 属性 继承自 DA::DAPyObjectWrapper | |
| pybind11::object | _object |
| ErrCallback | _errcallback |
对Pandas.Series的Qt封装
| void DA::DAPySeries::castTo | ( | VectLikeIte | begin | ) | const |
把series转换为一个容器数组
支持的数据类型转换:
| begin | 输出迭代器 |
| pybind11::dtype DA::DAPySeries::dtype | ( | ) | const |
Return the dtype object of the underlying data.
| bool DA::DAPySeries::empty | ( | ) | const |
Indicator whether Series/DataFrame is empty.
| pybind11::object DA::DAPySeries::iat | ( | std::size_t | i | ) | const |
DASeries::iat Access a single value for a row/column pair by integer position.
| i |
| QString DA::DAPySeries::name | ( | ) | const |
Series.name
Return the name of the Series.
The name of a Series becomes its index or column name if it is used to form a DataFrame. It is also used whenever displaying the Series using the interpreter.
| pybind11::object DA::DAPySeries::operator[] | ( | const QString & | colName | ) | const |
针对索引是字符串的场景
| colName |
| std::size_t DA::DAPySeries::size | ( | ) | const |
Series.size
Return the number of elements in the underlying data.