nyu-mll / crows-pairs

This repository contains the data and code introduced in the paper "CrowS-Pairs: A Challenge Dataset for Measuring Social Biases in Masked Language Models" (EMNLP 2020).
102 stars 24 forks source link

metrics.py: Deprecated DataFrame.append() #9

Open victorchang1001 opened 1 year ago

victorchang1001 commented 1 year ago

Hi,

Pandas 2.0.0 (April 3, 2023) have removed deprecated Series.append(), DataFrame.append() methods, and concat() should be used instead.

I'd like to suggest specifying the pandas version you used in requirements.txt to avoid errors (AttributeError: 'DataFrame' object has no attribute 'append')!

Dheeraj-kkde commented 9 months ago

Hi Victor,

You can resolve the above issue by using "_append" instead of "append".