top_left_corner_df = df.iloc[:4, :4]. DataFrame non-indexing attributes df = df.T # transpose rows and cols l = df.axes # list row and col indexes.
確定! 回上一頁