1. Selecting multiple columns by name: import pandas as pd # create a sample ... select columns A and B using a slice df_AB_slice = df.loc[:, 'A':'B'] ...
確定! 回上一頁