{"author_url":"https://blog.hatena.ne.jp/yohei-a/","width":"100%","title":"pyspark.sql module \u306e select \u3067 DataFrame \u306e\u5168\u30ab\u30e9\u30e0\u3092\u53d6\u5f97\u3059\u308b","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohei-a.hatenablog.jp%2Fentry%2F20200630%2F1593507221\" title=\"pyspark.sql module \u306e select \u3067 DataFrame \u306e\u5168\u30ab\u30e9\u30e0\u3092\u53d6\u5f97\u3059\u308b - ablog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","url":"https://yohei-a.hatenablog.jp/entry/20200630/1593507221","image_url":null,"blog_title":"ablog","author_name":"yohei-a","description":"pyspark.sql module \u306e select \u3067 DataFrame \u306e\u5168\u30ab\u30e9\u30e0\u3092\u53d6\u5f97\u3059\u308b\u3002 df = df.select([column for column in df.columns]) \u53c2\u8003 drop_list = ['a column', 'another column', ...] df.select([column for column in df.columns if column not in drop_list]) apache-spark \u2014 pyspark\u30c7\u30fc\u30bf\u30d5\u30ec\u30fc\u30e0\u306e\u5217\u3092\u524a\u9664\u3059\u308b\u65b9\u6cd5 select(*cols) Projects a set of expr\u2026","blog_url":"https://yohei-a.hatenablog.jp/","type":"rich","height":"190","published":"2020-06-30 17:53:41","categories":["Spark"],"provider_name":"Hatena Blog","provider_url":"https://hatena.blog"}