Answers for "names read csv python"

0

Column names reading csv file python

import pandas as pd
df = pd.read_csv('file.csv', names=['a', 'b', 'c'], header=None)
df.rename(columns = {'a':'A', 'b':'B', 'c':'C'}, inplace = True) 
df.to_csv('file.csv')
Posted by: Guest on October-30-2020
21

pandas read csv

df = pd.read_csv('data.csv')
Posted by: Guest on March-20-2020

Python Answers by Framework

Browse Popular Code Answers by Language