πŸ“Š Pandas
Q. Which of the following is used to select a column in a pandas DataFrame?
  • (A) df.column_name
  • (B) df['column_name']
  • (C) Both A and B
  • (D) df.select_column()
πŸ’¬ Discuss
βœ… Correct Answer: (C) Both A and B

Explanation: You can select a column using dot notation (df.column_name) or dictionary-style indexing (df['column_name']).

Explanation by: Sikhar Chaudhary
You can select a column using dot notation (df.column_name) or dictionary-style indexing (df['column_name']).

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
51
Total Visits
πŸ“½οΈ
5 mo ago
Published
πŸŽ–οΈ
Sikhar Chaudhary
Publisher
πŸ“ˆ
91%
Success Rate