本文簡要介紹
pyspark.pandas.Series.copy
的用法。用法:
Series.copy(deep: bool = True) → pyspark.pandas.series.Series
製作此對象的索引和數據的副本。
- deep:布爾值,默認為真
不支持此參數,而隻是匹配 pandas 的虛擬參數。
- copy:Series
參數:
返回:
例子:
>>> s = ps.Series([1, 2], index=["a", "b"]) >>> s a 1 b 2 dtype: int64 >>> s_copy = s.copy() >>> s_copy a 1 b 2 dtype: int64
相關用法
- Python pyspark Series.count用法及代碼示例
- Python pyspark Series.combine_first用法及代碼示例
- Python pyspark Series.corr用法及代碼示例
- Python pyspark Series.compare用法及代碼示例
- Python pyspark Series.cumsum用法及代碼示例
- Python pyspark Series.cat.ordered用法及代碼示例
- Python pyspark Series.cat.as_unordered用法及代碼示例
- Python pyspark Series.cummax用法及代碼示例
- Python pyspark Series.cat.set_categories用法及代碼示例
- Python pyspark Series.cummin用法及代碼示例
- Python pyspark Series.cat.rename_categories用法及代碼示例
- Python pyspark Series.cat.as_ordered用法及代碼示例
- Python pyspark Series.cumprod用法及代碼示例
- Python pyspark Series.clip用法及代碼示例
- Python pyspark Series.cat.reorder_categories用法及代碼示例
- Python pyspark Series.cat.remove_categories用法及代碼示例
- Python pyspark Series.cat.add_categories用法及代碼示例
- Python pyspark Series.cat.categories用法及代碼示例
- Python pyspark Series.cat.codes用法及代碼示例
- Python pyspark Series.cat.remove_unused_categories用法及代碼示例
- Python pyspark Series.asof用法及代碼示例
- Python pyspark Series.to_frame用法及代碼示例
- Python pyspark Series.rsub用法及代碼示例
- Python pyspark Series.mod用法及代碼示例
- Python pyspark Series.str.join用法及代碼示例
注:本文由純淨天空篩選整理自spark.apache.org大神的英文原創作品 pyspark.pandas.Series.copy。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。