{"url":"https://hk29.hatenablog.jp/entry/2021/03/04/005530","provider_name":"Hatena Blog","width":"100%","blog_url":"https://hk29.hatenablog.jp/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhk29.hatenablog.jp%2Fentry%2F2021%2F03%2F04%2F005530\" title=\"Python \u5217\u30c7\u30fc\u30bf\u3092\u884c\u65b9\u5411\u3078\u9023\u7d50\u3059\u308b\u300cPandas\u300d - Python\u3068VBA\u3067\u4e16\u306e\u4e2d\u3092\u4fbf\u5229\u306b\u3059\u308b\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"HK29","published":"2021-03-04 00:55:30","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/HK29/","categories":["Python","pandas","\u62bd\u51fa"],"type":"rich","title":"Python \u5217\u30c7\u30fc\u30bf\u3092\u884c\u65b9\u5411\u3078\u9023\u7d50\u3059\u308b\u300cPandas\u300d","version":"1.0","height":"190","blog_title":"Python\u3068VBA\u3067\u4e16\u306e\u4e2d\u3092\u4fbf\u5229\u306b\u3059\u308b","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/H/HK29/20210304/20210304003446.png","description":"\u672c\u8a18\u4e8b\u3067\u306f\u3001pandas\u3092\u5229\u7528\u3057\u3066\u5217\u30c7\u30fc\u30bf\u3092\u884c\u65b9\u5411\u3078\u9023\u7d50\u3059\u308b\u96db\u5f62\u30b3\u30fc\u30c9\u3092\u8f09\u305b\u307e\u3057\u305f\u3002\u4e0b\u56f3\u5de6\u304c\u5143\u30c7\u30fc\u30bf\u3067\u3001\u5217\u540dindex\u306e\u50240,1,2\u3092\u5404\u30b0\u30eb\u30fc\u30d7\u3068\u3057\u3066\u3001\u5217\u540ddata1,data2,data3\u306e\u5024\u3092\u884c\u65b9\u5411\u3078\u7d50\u5408\u3057\u307e\u3059\u3002\u3053\u306e\u6642\u3001\u91cd\u8907\u3059\u308b\u5024\u304c\u3042\u308b\u5834\u5408\u306f\u305d\u306e\u884c\u3092\u524a\u9664\u3057\u3066\u3001\u30bd\u30fc\u30c8\u3057\u307e\u3059\u3002\u51e6\u7406\u5f8c\u306e\u7d50\u679c\u304c\u4e0b\u56f3\u53f3\u3067\u3059\u3002 \u25a0\u672c\u30d7\u30ed\u30b0\u30e9\u30e0 import pandas as pd import numpy as np def main(): df = pd.read_csv(input_file) print(df) df0 = df[~df.duplicated('index')] # \u6307\u5b9a\u3057\u305f\u5217\u306e\u91cd\u8907\u3059\u308b\u884c\u3092\u524a\u2026"}