when read in .txt file python gives automatic names not useful (i.e. 0, 0.1, 0.2, 0.3...). how rename columns without having explicitly type all?
for example, how rename variables v1 v200?
df.columns = ["feature_"+str(x) x in range(len(df.columns))]
Comments
Post a Comment