get index per ID – from example data using text input to pandas dataframe? easily reproducible
get index per ID – from example data using text input to pandas dataframe? easily reproducible Question: Text can be used as input to pandas dataframes to make easily reproducible examples for testing solutions.1 import pandas as pd from io import StringIO txt= """ ID,datetime,value AB-CL-34,07/10/2022 10:00:00,5 AB-CL-34,07/10/2022 11:15:10,7 AB-CL-34,09/10/2022 15:30:30,13 BX-RT-55,06/10/2022 11:30:22,0 BX-RT-55,10/10/2022 22:44:11,1 …