Datasets:

File size: 503 Bytes
64eb1a3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

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)