Data Extraction through loc

     

  • before running the program, Please check the symbol status order
  • Please check the row label order
  •  

    df.loc[row slicing ,column slicing]

     

    print Symbol and Open columns

     

  • df2 = df1.loc['INFY':'HINDPETRO' ,'High':'LTP']
  • First selection is row selection in form of labels
  • second selection is column selection in form of labels
  • {% for c in range(colscount) %}
    {{headerdata[c]}}
    {% endfor %}
    {% for i in range(rowscount) %}
    {% for c in range(colscount) %}
    {{totalrows[i][c]}}
    {% endfor %}
    {% endfor %}