Rolling Average Steps
[]
['Create table if not exists Steps(user_id int, steps_count int, steps_date date)', 'Truncate table Steps', "insert into Steps (user_id, steps_count, steps_date) values ('1', '687', '2021-09-02')", "insert into Steps (user_id, steps_count, steps_date) values ('1', '395', '2021-09-04')", "insert into Steps (user_id, steps_count, steps_date) values ('1', '499', '2021-09-05')", "insert into Steps (user_id, steps_count, steps_date) values ('1', '712', '2021-09-06')", "insert into Steps (user_id, steps_count, steps_date) values ('1', '576', '2021-09-07')", "insert into Steps (user_id, steps_count, steps_date) values ('2', '153', '2021-09-06')", "insert into Steps (user_id, steps_count, steps_date) values ('2', '171', '2021-09-07')", "insert into Steps (user_id, steps_count, steps_date) values ('2', '530', '2021-09-08')", "insert into Steps (user_id, steps_count, steps_date) values ('3', '945', '2021-09-04')", "insert into Steps (user_id, steps_count, steps_date) values ('3', '120', '2021-09-07')", "insert into Steps (user_id, steps_count, steps_date) values ('3', '557', '2021-09-08')", "insert into Steps (user_id, steps_count, steps_date) values ('3', '840', '2021-09-09')", "insert into Steps (user_id, steps_count, steps_date) values ('3', '627', '2021-09-10')", "insert into Steps (user_id, steps_count, steps_date) values ('5', '382', '2021-09-05')", "insert into Steps (user_id, steps_count, steps_date) values ('6', '480', '2021-09-01')", "insert into Steps (user_id, steps_count, steps_date) values ('6', '191', '2021-09-02')", "insert into Steps (user_id, steps_count, steps_date) values ('6', '303', '2021-09-05')"]
{"mysql": ["Create table if not exists Steps(user_id int, steps_count int, steps_date date)"], "mssql": ["Create table Steps(user_id int, steps_count int, steps_date date)"], "oraclesql": ["Create table Steps(user_id int, steps_count int, steps_date date)", "ALTER SESSION SET nls_date_format='YYYY-MM-DD'"], "database": true, "name": "rolling_average", "pythondata": ["Steps = pd.DataFrame([], columns=['user_id', 'steps_count', 'steps_date']).astype({'user_id':'Int64', 'steps_count':'Int64', 'steps_date':'datetime64[ns]'})"], "postgresql": ["Create table if not exists Steps(user_id int, steps_count int, steps_date date)"], "database_schema": {"Steps": {"user_id": "INT", "steps_count": "INT", "steps_date": "DATE"}}}
{"mysql": ["MySQL", "<p><code>MySQL 8.0</code>.</p>"], "mssql": ["MS SQL Server", "<p><code>mssql server 2019</code>.</p>"], "oraclesql": ["Oracle", "<p><code>Oracle Sql 11.2</code>.</p>"], "pythondata": ["Pandas", "<p>Python 3.10 with Pandas 2.2.2 and NumPy 1.26.4</p>"], "postgresql": ["PostgreSQL", "<p>PostgreSQL 16</p>"]}
['Database']