@dec.skip_without('pandas')
def test_dataframe_key_completion():
 import pandas
 ip = get_ipython()
 complete = ip.Completer.complete
 ip.user_ns['d'] = pandas.DataFrame({'hello': [1], 'world': [2]})
 (_, matches) = complete(line_buffer="d['")
 nt.assert_in('hello', matches)
 nt.assert_in('world', matches)

@ dec . skip_without ( 'pandas' ) def test_dataframe_key_completion ( ) : import pandas ip = get_ipython ( ) complete = ip . Completer . complete ip . user_ns [ 'd' ] = pandas . DataFrame ( { 'hello' : [ 1 ] , 'world' : [ 2 ] } ) ( _ , matches ) = complete ( line_buffer = "d['" ) nt . assert_in ( 'hello' , matches ) nt . assert_in ( 'world' , matches )
test dict key completion applies to pandas dataframes .