I am having an issue when I select data from the SQL database through pyodbc where I end up with this type of result.
[(55.0, )]
I want the pure number (no "[" or "(" so I later can insert it into a different table after calculating new stuff with it. I am sure it's trivial but I just haven't been able to figure out how. Below is the code I am using:
rows = conn.execute("SELECT price from PG").fetchall()
print(rows[:1])