Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions