I have searched high and low for a solution to the scenario mentioned below, but have had no luck. Heads up - I'm a coding novice, but am currently learning Python as my primary programming language.
In short, I have a table in BigQuery where the first column contains strings, while every other column contains integers. The integer columns are headed using a "month_year" format. I want my users to be able to enter a word into a textbox and select a "from" date and a "to" date, and then run the query so that it returns the data for that word as a trend graph between those dates.
I have this working great in Excel, whereby I have been able to manipulate the query using ActiveX controls linked to cells and then execute it via a data connection. Here's an example of a query that works in Excel:
SELECT que, jan_15, feb_15, mar_15, apr_15, FROM [xxx.xxxx] WHERE (que CONTAINS 'VITAMINS') ORDER BY 1 DESC, LIMIT 1000
So, "VITAMINS" - would be the textbox value and "jan_15, feb_15, mar_15, apr_15" would be the "from" date and "to" date values.
I would like to replicate this using Python. In addition to monthly data, I will also be creating tables for daily data and yearly data, so allowing users to set their from/to dates to search by day, month or year would be great.
Thanks!