熊猫DataFrame append()函数

Pandas DataFrame append() function is used to merge rows from another DataFrame object. This function returns a new DataFrame object and doesn’t change the source objects. If there is a mismatch in the columns, the new columns are added in the result DataFrame.

Pandas DataFrame append()函数用于合并另一个DataFrame对象中的行。 此函数返回一个新的DataFrame对象,并且不更改源对象。 如果各列不匹配,则将新列添加到结果DataFrame中。

1.熊猫DataFrame append()参数 (1. Pandas DataFrame append() Parameters)

The append() function syntax is:

append()函数的语法为:

append(other, ignore_index=False, verify_integrity=False, sort=None)
  • other: The DataFrame, Series or Dict-like object whose rows will be added to the caller DataFrame.

    其他 :DataFrame,Series或Dict式对象,其行将添加到调用方DataFrame中。
  • ignore_index: if True, the indexes from the source DataFrame objects are ignored.

    ignore_index :如果为True,则将忽略源DataFrame对象中的索引。
  • verify_integrity: if True, raise ValueError on creating index with duplicates.

    verify_integrity :如果为True,则在创建具有重复项的索引时引发ValueError
  • sort: sort columns if the source DataFrame columns are not aligned. This functionality is deprecated. So we have to pass sort=

你可能感兴趣的:(python,java,php,索引,javascript,ViewUI)