|
DAWorkbench 0.0.1
DAWorkbench API
|
对应pandas的包 更多...
#include <DAPyModulePandas.h>
类 | |
| class | PrivateData |
Public 成员函数 | |
| void | finalize () |
| QString | getLastErrorString () |
| 获取最后的错误 | |
| bool | import () |
| 导入模块 | |
| bool | isInstanceSeries (const pybind11::object &obj) const |
| bool | isInstanceDataFrame (const pybind11::object &obj) const |
| bool | isInstanceIndex (const pybind11::object &obj) const |
| DAPyDataFrame | read_csv (const QString &path, const QVariantHash &args=QVariantHash()) |
| 对pandas.read_csv的封装 pandas.read_csv(filepath_or_buffer, sep=NoDefault.no_default, delimiter=None, header='infer', names=NoDefault.no_default, index_col=None, usecols=None, squeeze=None, prefix=NoDefault.no_default, mangle_dupe_cols=True, dtype=None, engine=None, converters=None, true_values=None, false_values=None, skipinitialspace=False, skiprows=None, skipfooter=0, nrows=None, na_values=None, keep_default_na=True, na_filter=True, verbose=False, skip_blank_lines=True, parse_dates=None, infer_datetime_format=False, keep_date_col=False, date_parser=None, dayfirst=False, cache_dates=True, iterator=False, chunksize=None, compression='infer', thousands=None, decimal='.', lineterminator=None, quotechar='"', quoting=0, doublequote=True, escapechar=None, comment=None, encoding=None, encoding_errors='strict', dialect=None, error_bad_lines=None, warn_bad_lines=None, on_bad_lines=None, delim_whitespace=False, low_memory=True, memory_map=False, float_precision=None, storage_options=None) | |
Public 成员函数 继承自 DA::DAPyModule | |
| DAPyModule (const char *moduleName) | |
| DAPyModule (const pybind11::object &obj) | |
| DAPyModule (pybind11::object &&obj) | |
| DAPyModule & | operator= (const DAPyObjectWrapper &obj) |
| DAPyModule & | operator= (const pybind11::object &obj) |
| bool | isImport () const |
| 判断是否导入 | |
| QString | moduleName () const |
| 获取模块名 | |
| void | reload () |
| 重新加载模块 | |
| bool | import (const char *module_n) noexcept |
| 导入模块 | |
| QString | lastError () const |
| bool | hasError () const |
| void | clearError () |
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 DAPyModulePandas & | getInstance () |
| static bool | isInstanceDataFrame_ (const pybind11::object &obj) |
静态 Public 成员函数 继承自 DA::DAPyModule | |
| static DAPyModule | importModule (const char *module_n) |
| 导入模块 | |
| static bool | isInstanceTime (const pybind11::handle &obj) |
| static bool | isInstanceDate (const pybind11::handle &obj) |
| static bool | isInstanceDateTime (const pybind11::handle &obj) |
| static bool | isInstancePandasDateTime (const pybind11::handle &obj) |
| static bool | isInstanceNumpyDateTime (const pybind11::handle &obj) |
| static bool | isInstanceTimedelta (const pybind11::handle &obj) |
额外继承的成员函数 | |
Public 类型 继承自 DA::DAPyObjectWrapper | |
| using | ErrCallback = std::function< void(const char *) > |
| 异常错误回调函数 | |
Protected 属性 继承自 DA::DAPyObjectWrapper | |
| pybind11::object | _object |
| ErrCallback | _errcallback |
对应pandas的包
| QString DA::DAPyModulePandas::getLastErrorString | ( | ) |
获取最后的错误
| bool DA::DAPyModulePandas::import | ( | ) |
导入模块
| DAPyDataFrame DA::DAPyModulePandas::read_csv | ( | const QString & | path, |
| const QVariantHash & | args = QVariantHash() |
||
| ) |
对pandas.read_csv的封装 pandas.read_csv(filepath_or_buffer, sep=NoDefault.no_default, delimiter=None, header='infer', names=NoDefault.no_default, index_col=None, usecols=None, squeeze=None, prefix=NoDefault.no_default, mangle_dupe_cols=True, dtype=None, engine=None, converters=None, true_values=None, false_values=None, skipinitialspace=False, skiprows=None, skipfooter=0, nrows=None, na_values=None, keep_default_na=True, na_filter=True, verbose=False, skip_blank_lines=True, parse_dates=None, infer_datetime_format=False, keep_date_col=False, date_parser=None, dayfirst=False, cache_dates=True, iterator=False, chunksize=None, compression='infer', thousands=None, decimal='.', lineterminator=None, quotechar='"', quoting=0, doublequote=True, escapechar=None, comment=None, encoding=None, encoding_errors='strict', dialect=None, error_bad_lines=None, warn_bad_lines=None, on_bad_lines=None, delim_whitespace=False, low_memory=True, memory_map=False, float_precision=None, storage_options=None)
| path |