79273285

Date: 2024-12-11 21:59:48
Score: 1.5
Natty:
Report link

Just use iloc and slice as you would do with a list i.e. start:end:step. Example:

df = pd.DataFrame({"A":range(100)})
display(df.T)
display(df.iloc[0::5].T)
display(df.iloc[1::5].T)
display(df.iloc[2::5].T)
# ...

res

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: rehaqds