Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Datasets:
cat-state
/
mscoco-1st-caption
like
3
Modalities:
Image
Tabular
Text
Formats:
parquet
Size:
100K - 1M
Libraries:
Datasets
Dask
Croissant
+ 1
License:
cc-by-4.0
Dataset card
Viewer
Files
Files and versions
Community
b06eae2
mscoco-1st-caption
/
first_caption_only.py
cat-state
add script
c929b60
over 2 years ago
raw
Copy download link
history
blame
Safe
172 Bytes
import
pandas
as
pd
df = pd.read_parquet(
'mscoco.parquet'
)
first_caps = df.drop_duplicates(subset=
'URL'
, keep=
'first'
)
first_caps.to_parquet(
'mscoco-1st-caption.parquet'
)