def read_data(self): try: data = pd.read_csv(self.file_path) return data except Exception as e: print(f"Failed to read data: {e}") return None