panel-data

Fill panel data with ranked timepoints in pandas

Fill panel data with ranked timepoints in pandas Question: Given a DataFrame that represents instances of called customers: import pandas as pd import numpy as np df_1 = pd.DataFrame({"customer_id" : [1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 5, 5]}) The data is ordered by time such that every customer is a time-series …

Total answers: 1