original_docstring: 
      Helper to check if a DataFrame is aligned with another DataFrame or Series.
      
docstring: Helper to check if a DataFrame is aligned with another DataFrame or Series.
docstring_tokens: Helper to check if a DataFrame is aligned with another DataFrame or Series .
code: def _is_aligned(frame, other):
      """
      Helper to check if a DataFrame is aligned with another DataFrame or Series.
      """
      from pandas import DataFrame
  
      if isinstance(other, DataFrame):
          return frame._indexed_same(other)
      else:
          # Series -> match index
          return frame.columns.equals(other.index)
code_tokens: def _is_aligned ( frame , other ) : from pandas import DataFrame if isinstance ( other , DataFrame ) : return frame . _indexed_same ( other ) else : return frame . columns . equals ( other . index )
short_docstring: Helper to check if a DataFrame is aligned with another DataFrame or Series.
short_docstring_tokens: Helper to check if a DataFrame is aligned with another DataFrame or Series .
comment: """
      Helper to check if a DataFrame is aligned with another DataFrame or Series.
      """$SEP$# Series -> match index