前提・実現したいこと
Pandasを使ってタブをスペースに変化したいのですがエラーが出ます.
発生している問題・エラーメッセージ
import pandas as pd df = pd.read_csv('https://nlp100.github.io/data/popular-names.txt, sep='\t', header=None) df.to_csv('https://nlp100.github.io/data/popular-names.txt', sep=' ', index=False, header=None)
どうすればいいのか分からないので教えて頂けないでしょうか?
回答1件
あなたの回答
tips
プレビュー