ex(
en | ko |
---|---|
acrania | a |
acrania | b |
acrania | c |
acrania | d |
import pandas as pd
data = {'en': ['acrania', 'acrania', 'acrania', 'acrania'], 'ko': ['a', 'b', 'c', "d"]}
df = pd.DataFrame(data)
df = df.drop_duplicates(subset='en', keep="first")
print(df.to_string(index=False))