Pandas tutorial: Essential Basic Functionality

  • pd.date_range
index = pd.date_range('1/1/2000', periods=8)
  • DataFrame.sub(other, axis='columns', level=None, fill_value=None) ¶

Subtraction of dataframe and other, element-wise (binary operator sub).

axis : {0, 1, ‘index’, ‘columns’}
0  <-->  index
1  <-->  columns

你可能感兴趣的:(Pandas tutorial: Essential Basic Functionality)