diff --git a/src/homepageExperience/components/steps/python/ExecuteAggregateQuerySql.tsx b/src/homepageExperience/components/steps/python/ExecuteAggregateQuerySql.tsx index 8a6e260bb9..565cb27ead 100644 --- a/src/homepageExperience/components/steps/python/ExecuteAggregateQuerySql.tsx +++ b/src/homepageExperience/components/steps/python/ExecuteAggregateQuerySql.tsx @@ -20,15 +20,15 @@ export const ExecuteAggregateQuerySql = (props: OwnProps) => { const {bucket} = props const sqlSnippet = `SELECT mean(count) -FROM 'census' -WHERE time > now() - '10m'` +FROM "census" +WHERE time > now() - 10m` const querySnippet = `query = """SELECT mean(count) -FROM 'census' -WHERE time > now() - '10m'""" +FROM "census" +WHERE time > now() - 10m""" # Execute the query -table = client.query(query=query, database="${bucket}", language='influxql') ) +table = client.query(query=query, database="${bucket}", language="influxql") # Convert to dataframe df = table.to_pandas().sort_values(by="time")