Combining functions
Collections
A collection of pre-define APIs to help users combine collection data, like list, array, tuple
- parfun.combine.collection.list_concat(values: Iterable[List[ListValue]]) List[ListValue]
Chains a collection of lists in a single list.
list_concat([[1,2], [3], [4, 5]]) # [1, 2, 3, 4, 5]
Dataframes
A collection of pre-define APIs to help users combine Pandas’ Dataframe data
- parfun.combine.dataframe.df_concat(dfs: Iterable[DataFrame]) DataFrame
Similar to
pandas.concat()
.df_1 = pd.DataFrame([1,2,3]) df_2 = pd.DataFrame([4,5,6]) print(df_concat([df_1, df_2])) # 0 # 0 1 # 1 2 # 2 3 # 3 4 # 4 5 # 5 6