kakoli
kakoli

Reputation: 447

Filter pandas dataframe rows specifying column value till the end

Quarter GDP Col2
1947q1 1932.3 ...
1947q2 1930.3 ...
. .
2000q1
2000q2
. .
2016q4

I need to get the dataframe rows starting from Quarter == 2000q1 till the last row.

Upvotes: 0

Views: 1206

Answers (1)

Scott Boston
Scott Boston

Reputation: 153460

dataframe.loc['2000q1':]

Index slicing in dataframe.

Upvotes: 2

Related Questions