0

I have an problem my CSV File has no column names. It starts with the data entries. So I was asking my self if there is an way to assign to an Dataframe column name. I need the column names to get specific columns for datascience.

import pandas as pd
import datetime

birthday = pd.read_csv("birthday.csv")

print(list(birthday.columns.values))

I hope there is an way without writing the file again because it does take some times. Around 1 hour.

Hopefully you can help me.

Best Regards Tobias

TobiasDex
  • 63
  • 7

0 Answers0