Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Interpretation of a code
#1
Dear Python Users,

Please, help me to interpret the following line of a code (I have two df - futures_data and options_data):
for option in options_data.index:
    # iterating over all option quotes
    forward = futures_data[futures_data['MATURITY'] == \
                options_data.loc[option]['MATURITY']]['PRICE'].values[0]
The things that I dont understand:
- what is the meaning of [/b]index in "...options_data.index:"
- the line of code after the "for" loop

Please, advise me this issue
Reply
#2
What is options_data ? type(options_data).
99 percent of computer problems exists between chair and keyboard.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  vars() can't be used in list interpretation? Cheng 3 2,112 Jun-22-2021, 11:59 AM
Last Post: snippsat
  This is an Object - Code interpretation JoeDainton123 2 1,812 Jun-16-2021, 08:11 PM
Last Post: snippsat
  English interpretation of the following file handing snippet mortch 5 3,188 May-30-2019, 08:10 AM
Last Post: mortch

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020