apply function get specific column value pandas code example
Example 1: change specific column name pandas
df_new = df.rename(columns={'A': 'a'}) #change a from A
Example 2: python - subset specific columns name in a dataframe
columns = ['b', 'c']
df1 = pd.DataFrame(df, columns=columns)