Question: Hello, I have a pandas dataframe with multiple columns and rows. I would like to create an entirely new column to the far left that

Hello, I have a pandas dataframe with multiple columns and rows. I would like to create an entirely new column to the far left that numbers each row starting from 1. How can I do this?1 #Confirm dataframe was created
sust_df.head(50)
Out[6]:
FY
Ship
Class
Issue
Task
Problem
Statement
Background
02022
CG
Below Waterline
and Tank Top.
Aged and
CG.22.1
None
None
overdue...
12022 CG Port Boat Davit
Ao.
CG.22.4
None
None
2,2022
CG
Superstructure
aged and
overdue
CG.22.6
None
None
 Hello, I have a pandas dataframe with multiple columns and rows.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!