हिंदी

In Python Pandas, DataFrame. ______ [] is used for label indexing with DataFrames. - Informatics Practices

Advertisements
Advertisements

प्रश्न

In Python Pandas, DataFrame. ______ [] is used for label indexing with DataFrames.

विकल्प

  • label

  • index

  • labindex 

  • loc

MCQ
रिक्त स्थान भरें
Advertisements

उत्तर

In Python Pandas, DataFrame. loc [] is used for label indexing with DataFrames.

Explanation:

In Pandas, the loc [] method is used for indexing based on labels, allowing us to access rows and columns using their respective labels.
Syntax: DataFrame. loc [row_label, column_label].

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2024-2025 (March) Set 4
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×