|
1 | 1 | """
|
2 |
| - PyTable |
| 2 | + PyTable(x) |
3 | 3 |
|
4 |
| -Abstract type for Python wrappers which may be interpretable as Tables.jl-compatible tables. |
| 4 | +Wrap `x` as a Tables.jl-compatible table. |
5 | 5 |
|
6 |
| -If `pyconvert(PyTable, x::Py)` is a table, then `x` is also a table. |
| 6 | +`PyTable` is an abstract type. See [`PyPandasDataFrame`](@ref) for a concrete example. |
7 | 7 | """
|
8 | 8 | abstract type PyTable end
|
9 | 9 | export PyTable
|
10 | 10 |
|
11 | 11 | PyTable(x) = pyconvert(PyTable, x)
|
12 | 12 |
|
13 |
| -Tables.istable(x::Py) = Tables.istable(@pyconvert(PyTable, x, return false)) |
14 |
| -Tables.rowaccess(x::Py) = Tables.rowaccess(@pyconvert(PyTable, x, return false)) |
15 |
| -Tables.rows(x::Py) = Tables.rows(pyconvert(PyTable, x)) |
16 |
| -Tables.columnaccess(x::Py) = Tables.columnaccess(@pyconvert(PyTable, x, return false)) |
17 |
| -Tables.columns(x::Py) = Tables.columns(pyconvert(PyTable, x)) |
18 |
| -Tables.materializer(x::Py) = Tables.materializer(pyconvert(PyTable, x)) |
| 13 | +# Tables.istable(x::Py) = Tables.istable(@pyconvert(PyTable, x, return false)) |
| 14 | +# Tables.rowaccess(x::Py) = Tables.rowaccess(@pyconvert(PyTable, x, return false)) |
| 15 | +# Tables.rows(x::Py) = Tables.rows(pyconvert(PyTable, x)) |
| 16 | +# Tables.columnaccess(x::Py) = Tables.columnaccess(@pyconvert(PyTable, x, return false)) |
| 17 | +# Tables.columns(x::Py) = Tables.columns(pyconvert(PyTable, x)) |
| 18 | +# Tables.materializer(x::Py) = Tables.materializer(pyconvert(PyTable, x)) |
0 commit comments