Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
abostroem opened this issue Jan 6, 2024 · 1 comment
Closed

Comments

@abostroem
Copy link
Contributor

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

@abostroem
Copy link
Contributor Author

abostroem commented Jan 6, 2024

Actually, this doesn't allow for changing the value on the fly, I'm going to close the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant