Skip to content

Commit e2653f5

Browse files
author
Jonah Paten
authored
fix: get_change_df_over_time uses an inclusive range (#4365) (#4366)
1 parent 526cb84 commit e2653f5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

analytics/analytics_package/analytics/sheets_elements.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def get_change_over_time_df(
270270
metrics,
271271
time_dimension,
272272
sort_results=[time_dimension],
273-
df_processor=(lambda df: df.set_index(df.index + "01")[-2::-1]),
273+
df_processor=(lambda df: df.set_index(df.index + "01").sort_index(ascending=False)),
274274
format_table=False,
275275
**other_params
276276
)

analytics/analytics_package/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name="analytics",
5-
version="3.4.0",
5+
version="3.4.1",
66
packages=["analytics"],
77
install_requires=["matplotlib", "pandas", "numpy", "google-auth-oauthlib", "google-api-python-client", "gspread", "gspread-formatting"],
88
)

0 commit comments

Comments
 (0)