PD DataFrame erhalten Spaltennamen
lst = data.columns.values # data is dataframe
Wicked Wildebeest
lst = data.columns.values # data is dataframe
print(data.columns.values)
import pandas as pd
df = pd.read_csv("file path.csv")
df.columns
# Import pandas package
import pandas as pd
# making data frame
data = pd.read_csv("nba.csv")
# iterating the columns
for col in data.columns:
print(col)
# Import pandas package
import pandas as pd
# making data frame
data = pd.read_csv("nba.csv")
# iterating the columns
for col in data.columns:
print(col)