Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

select 2 cols from dataframe python pandas

# Convert the dictionary into DataFrame 
df = pd.DataFrame(data)
  
# select two columns
df[['Name', 'Qualification']]
 
PREVIOUS NEXT
Tagged: #select #cols #dataframe #python #pandas
ADD COMMENT
Topic
Name
7+8 =