home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1065249883

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions issue performed_via_github_app
https://github.com/simonw/sqlite-utils/issues/413#issuecomment-1065249883 https://api.github.com/repos/simonw/sqlite-utils/issues/413 1065249883 IC_kwDOCGYnMM4_fmxb 9599 2022-03-11T16:03:35Z 2022-03-11T16:03:35Z OWNER

Applying this change fixes that: `diff diff --git a/sqlite_utils/db.py b/sqlite_utils/db.py index 3bc528f..2a79711 100644 --- a/sqlite_utils/db.py +++ b/sqlite_utils/db.py @@ -2293,18 +2293,18 @@ class Table(Queryable): """ Apply conversion functionfn`` to every value in the specified columns.

    • columns - a single column or list of string column names to convert.
    • fn - a callable that takes a single argument, value, and returns it converted.
    • output - optional string column name to write the results to (defaults to the input column).
    • output_type - if the output column needs to be created, this is the type that will be used
  • :param columns: a single column or list of string column names to convert.
  • :param fn: a callable that takes a single argument, value, and returns it converted.
  • :param output: optional string column name to write the results to (defaults to the input column).
  • :param output_type: if the output column needs to be created, this is the type that will be used for the new column.
    • drop - boolean, should the original column be dropped once the conversion is complete?
    • multi - boolean, if True the return value of fn(value) will be expected to be a
  • :param drop: boolean, should the original column be dropped once the conversion is complete?
  • :param multi: boolean, if True the return value of fn(value) will be expected to be a dictionary, and new columns will be created for each key of that dictionary.
    • where - a SQL fragment to use as a WHERE clause to limit the rows to which the conversion
  • :param where: a SQL fragment to use as a WHERE clause to limit the rows to which the conversion is applied, for example age > ? or age > :age.
    • where_args - a list of arguments (if using ?) or a dictionary (if using :age).
    • show_progress - boolean, should a progress bar be displayed?
  • :param where_args: a list of arguments (if using ?) or a dictionary (if using :age).
  • :param show_progress: boolean, should a progress bar be displayed?
     See :ref:`python_api_convert`.
     """
    

    ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
1166587040  
Powered by Datasette · Queries took 5.341ms · About: github-to-sqlite