| import pandas as pd | |
| # Specify the path to the train.csv file | |
| train_csv_path = "data/LongConL-tasks/ATS-Jurisdiction/train.csv" # Update with your actual path | |
| try: | |
| # Load the CSV file into a pandas DataFrame | |
| train_data = pd.read_csv(train_csv_path) | |
| # Get the number of samples | |
| num_samples = len(train_data) | |
| print(f"The train.csv file contains {num_samples} samples.") | |
| except Exception as e: | |
| print("An error occurred while loading the train.csv file:") | |
| print(e) | |