original_docstring: 
  	index1 is a pandas index/multiindex. index 2 is a pandas index (not multiindex).
  	Returns a pandas multiindex with the cartesian product of elements in (index1,index2). 
  	NB: If index1 is a sparse multiindex, the cartesian product of (index1,index2) will keep this structure.
  	
docstring: index1 is a pandas index/multiindex. index 2 is a pandas index (not multiindex).
  Returns a pandas multiindex with the cartesian product of elements in (index1,index2).
  NB: If index1 is a sparse multiindex, the cartesian product of (index1,index2) will keep this structure.
docstring_tokens: index1 is a pandas index / multiindex . index 2 is a pandas index ( not multiindex ) . Returns a pandas multiindex with the cartesian product of elements in ( index1 index2 ) . NB : If index1 is a sparse multiindex the cartesian product of ( index1 index2 ) will keep this structure .
code: def append_index_with_1dindex(index1,index2):
  	"""
  	index1 is a pandas index/multiindex. index 2 is a pandas index (not multiindex).
  	Returns a pandas multiindex with the cartesian product of elements in (index1,index2). 
  	NB: If index1 is a sparse multiindex, the cartesian product of (index1,index2) will keep this structure.
  	"""
  	return pd.MultiIndex.from_tuples([a+(b,) for a in index1 for b in index2],names=index1.names+index2.names) if isinstance(index1,pd.MultiIndex) else pd.MultiIndex.from_tuples([(a,b) for a in index1 for b in index2],names=index1.names+index2.names)
code_tokens: def append_index_with_1dindex ( index1 , index2 ) : return pd . MultiIndex . from_tuples ( [ a + ( b , ) for a in index1 for b in index2 ] , names = index1 . names + index2 . names ) if isinstance ( index1 , pd . MultiIndex ) else pd . MultiIndex . from_tuples ( [ ( a , b ) for a in index1 for b in index2 ] , names = index1 . names + index2 . names )
short_docstring: index1 is a pandas index/multiindex.
short_docstring_tokens: index1 is a pandas index / multiindex .
comment: """
  	index1 is a pandas index/multiindex. index 2 is a pandas index (not multiindex).
  	Returns a pandas multiindex with the cartesian product of elements in (index1,index2). 
  	NB: If index1 is a sparse multiindex, the cartesian product of (index1,index2) will keep this structure.
  	"""