ExtensionArrayFormatterShared#
-
class pandas::ExtensionArrayFormatterShared#
pandas C++ class.
Example#
#include <pandas/pandas.h>
using namespace pandas;
// Use ExtensionArrayFormatterShared
ExtensionArrayFormatterShared obj;
// ... operations ...
Other Methods#
Signature |
Return Type |
Location |
Example |
|---|---|---|---|
|
static std::vector<std::string> |
pd_extension_array_formatter.h:88 |
|
|
pd_extension_array_formatter.h:61 |
Code Examples#
The following examples are extracted from the test suite.
dispatch (pd_test_5_all.cpp:106843)
106833 break;
106834 }
106835 }
106836 if (!matched) {
106837 throw std::runtime_error("mix_kind missing shape token: " + mix_kind);
106838 }
106839 d.storage_label = s;
106840 return d;
106841}
106842
106843static CaseResult dispatch(const ExpectedRow& row) {
106844 DecodedKind d = decode_kind(row.mix_kind);
106845 // Block H "mixed_hetero" uses n_source=4 (not the default 3). Derive
106846 // n_source from oracle's n_rows by reversing the shape offset.
106847 if (d.storage_label == "mixed_hetero") {
106848 int delta = 0;
106849 if (d.shape_kind == "extend1") delta = 1;
106850 else if (d.shape_kind == "extend2") delta = 2;
106851 else if (d.shape_kind == "extend5") delta = 5;
106852 d.n_source = row.n_rows - delta;
106853 }