parameters: (series1, series2)
return_statement: return df.right
docstring: Reindex the first series by the second series.
  
      Parameters
      ----------
      series1 : pandas.Series
          Pandas series to reindex
      series2 : pandas.Series
          Pandas series to set the index of series1 by
  
      Returns
      -------
      df.right : pandas.DataFrame
docstring_summary: Reindex the first series by the second series.
docstring_tokens: Reindex the first series by the second series .
function: def reindex(series1, series2):
      """
      Reindex the first series by the second series.
  
      Parameters
      ----------
      series1 : pandas.Series
          Pandas series to reindex
      series2 : pandas.Series
          Pandas series to set the index of series1 by
  
      Returns
      -------
      df.right : pandas.DataFrame
      """
  
      # this function is identical to the reindex function found in UrbanSim in
      # urbansim/utils/misc.py
      df = pd.merge(pd.DataFrame({"left": series2}),
                    pd.DataFrame({"right": series1}),
                    left_on="left",
                    right_index=True,
                    how="left")
      return df.right
function_tokens: def reindex ( series1 , series2 ) : # this function is identical to the reindex function found in UrbanSim in # urbansim/utils/misc.py df = pd . merge ( pd . DataFrame ( { "left" : series2 } ) , pd . DataFrame ( { "right" : series1 } ) , left_on = "left" , right_index = True , how = "left" ) return df . right