You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is ordered by the frequency. The grouped by column is returned as string and not natively recognized by python. The quarterly string needs parsing. Ideally we centralise this function in PyLana.
if "byQuarter" in df.columns:
df['x_axes'] = pd.to_datetime(
df['byQuarter'].str.replace(r'(Q\d) (\d+)', r'\2-\1'), errors='coerce')
elif "byYear" in df.columns:
df["x_axes"] = pd.to_datetime(df.byYear)
elif "byMonth" in df.columns:
df["x_axes"] = pd.to_datetime(df.byMonth)
Currently the data that arrives from a request like this:
is ordered by the frequency. The grouped by column is returned as string and not natively recognized by python. The quarterly string needs parsing. Ideally we centralise this function in PyLana.