Machine Learning, Deep Learning, AI, Pandas, Data Analysis.
certain columns from a dataframe""" Out: df.loc[:, ['Wscore', 'Lscore']].head() #you can acheive the same result by using the loc function Out: type(df['Wscore']) #difference between both operations Out: pandas.core.series.Series type(df[['Wscore']]) Out: pandas.core.frame.DataFrame #only