| @@ -30,10 +30,14 @@ tex_fonts = { | |||
| def convert_cellid(value): | |||
| if isinstance(value, str): | |||
| return int(value.split(" ")[-1].replace("(", "").replace(")", "")) | |||
| try: | |||
| r = int(value.split(" ")[-1].replace("(", "").replace(")", "")) | |||
| return r | |||
| except Exception as e: | |||
| return -1 | |||
| else: | |||
| return int(-1) | |||
| if __name__ == "__main__": | |||
| parser = ArgumentParser() | |||
| @@ -104,7 +108,7 @@ if __name__ == "__main__": | |||
| serial_df.index = pd.to_datetime(serial_df.index) | |||
| serial_df.sort_index() | |||
| print(serial_df["Cell_ID"]) | |||
| #print(serial_df["Cell_ID"]) | |||
| #serial_df["Cell_ID"] = serial_df["Cell_ID"].apply( | |||
| # lambda x: int(x.split(" ")[-1].replace("(", "").replace(")", ""))) | |||