Skip to content

Update episodes to use f strings rather than the .format statement #222

Closed
@abostroem

Description

@abostroem

How could the content be improved?

For examples:

query3_base = """SELECT
TOP 10
{columns}
FROM gaiadr2.gaia_source
WHERE parallax < 1
AND bp_rp BETWEEN -0.75 AND 2
"""
query3 = query3_base.format(columns)

Can be combined into the single statement:

query3 = f"""SELECT
TOP 10
{columns}
FROM gaiadr2.gaia_source
WHERE parallax < 1
AND bp_rp BETWEEN -0.75 AND 2
"""

And columns will automatically be filled in

Which part of the content does your suggestion apply to?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions