In this note, a general dataframe is called
df
(type pandas.core.frame.DataFrame
), a general series is call s
(type pandas.core.series.Series
).Select a single value (with condition): Get the mark of
Thi
(9
).Select a column (returns a
Series
)Returns a
pd.DataFrame
Select multi-columns (type
DataFrame
): Get columns Name
& Place
:Select a row (returns a
Series
)Select multi-rows (type
DataFrame
)Selection,
If there are some column with single name,
Selection,
Selection,