I have two .csv files named all_cv.csv and common_cv.csv files. First I have concat this two csv files by pandas, and then save the data into a new file named join_cv_common.csv by pandas. After that I sorted the join_cv_common.csv file by pandas as below, and stored data are stored into a new file named sorted_cv_common.csv. I want to rewrite these two functions of pandas - concat and sort by pure python (2.6 and 3.4). Can someone help me in this regards? Thank you very much.
Pandas concat function
cv = pd.read_csv('all_cv.csv')
ac = pd.read_csv('common_cv.csv')
merged = pd.concat([cv, ac])
merged.to_csv('join_cv_common.csv')
Pandas sorting function
df = pd.read_csv('join_cv_common.csv')
df = df.sort(["adv_id", "conv_id"])
df.to_csv('sorted_cv_common.csv')
pandas.concatandpandas.sortin pure Python"? What is preventing you from using the implementations withinpandas? Thanks.