Skip to content

Convert Numbers to Strings in the header. #1

@datavinci

Description

@datavinci

You mentioned in comments for week 3's assignment that you could not find a way to convert the floating years to string. Well here's a way to do so:-
new.columns=new.columns[0:10].tolist()+[str(x) for x in list(map(int, new.columns[10:20]))]

Here's the resulting column names:-
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions