题目详情

在 Pandas中,drop_duplicates() 提供了删除重复值的功能,这个方法主要帮助我们删除后出现的重复值。例如,某列数据如下:Open: Open1 12 23 删除后变为 34 43 那么以下哪种参数可以帮助我们实现删除先出现的重复值。

  • A.df[‘open’].drop_first()
  • B.df[‘open].drop_duplicates(keep=’first’)
  • C.df[‘open’].drop_duplicates(keep=’last’)
  • D.df[‘open’].drop_last()

正确答案及解析

正确答案
B
解析
暂无解析

你可能感兴趣的试题

单选题

(  )is the process of transforming information so it is unintelligible to anyone but the intended recipient.

  • A.Encryption
  • B.Decryption
  • C.Security
  • D.Protection
查看答案
单选题

As each application module is completed,it undergoes(  )to ensure that it operates correctly and reliably.

  • A.unit testing
  • B.integration testing
  • C.system testing
  • D.acceptance testing
查看答案
单选题

(  )algorithm specifies the way to arrange data in a particular order.

  • A.Search
  • B.Random
  • C.Sorting
  • D.Merge
查看答案
单选题

After analyzing the source code,(  )generates machine instructions that will carry out the meaning of the program at a later time.

  • A.an interpreter
  • B.a linker
  • C.a compiler
  • D.a converter
查看答案
单选题

(  )can help organizations to better understand the information contained within the data and will also help identify the data that is most important to the business and future business decisions.

  • A.Data processing system
  • B.Big Data analytics
  • C.Cloud computing
  • D.Database management
查看答案

相关题库更多 +