0

I am trying to get a specific value in a dataframe that is composed of two columns, Date and Close. what I need is a close value of a specific date.

As a first step, I tried to find a specific date in the date column using the code below, but I keeps failing.

df[df['Date'].isin([specific_date])]

I can't come up with any better idea than this. Please help me.

NAM
  • 9
  • 3

1 Answers1

0

according to this stack question: Pandas - find specific value in entire dataframe

df.loc[ df['Date'] == specific_date ]
alexzander
  • 1,586
  • 1
  • 9
  • 21