* garrow_table_remove_column: * @table: A #GArrowTable. * @i: The index of the column to be removed. * @error: (nullable): Return location for a #GError or %NULL. * * Returns: (nullable) (transfer full): The newly allocated * #GArrowTable that doesn't have the column or %NULL on error. * * Since: 0.3.0 */
| 587 | * Since: 0.3.0 |
| 588 | */ |
| 589 | GArrowTable * |
| 590 | garrow_table_remove_column(GArrowTable *table, guint i, GError **error) |
| 591 | { |
| 592 | const auto arrow_table = garrow_table_get_raw(table); |
| 593 | auto maybe_new_table = arrow_table->RemoveColumn(i); |
| 594 | if (garrow::check(error, maybe_new_table, "[table][remove-column]")) { |
| 595 | return garrow_table_new_raw(&(*maybe_new_table)); |
| 596 | } else { |
| 597 | return NULL; |
| 598 | } |
| 599 | } |
| 600 | |
| 601 | /** |
| 602 | * garrow_table_replace_column: |
nothing calls this directly
no test coverage detected