Datasets:

LongConL / sample_length.py
srzhang's picture
test
64eb1a3
Raw
History Blame
503 Bytes
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)