b06bd2db687d26f90bb49e76bf6612c489d6035d,pandas/tests/arithmetic/test_timedelta64.py,,assert_dtype,#Any#Any#,30

Before Change


    
    Helper to check the dtype for a Series, Index, or single-column DataFrame.
    
    if isinstance(obj, DataFrame):
        dtype = obj.dtypes.iat[0]
    else:
        dtype = obj.dtype

    assert dtype == expected_dtype


// ------------------------------------------------------------------

After Change


    
    Helper to check the dtype for a Series, Index, or single-column DataFrame.
    
    dtype = tm.get_dtype(obj)

    assert dtype == expected_dtype

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: pandas-dev/pandas
Commit Name: b06bd2db687d26f90bb49e76bf6612c489d6035d
Time: 2021-02-01
Author: jbrockmendel@gmail.com
File Name: pandas/tests/arithmetic/test_timedelta64.py
Class Name:
Method Name: assert_dtype


Project Name: brian-team/brian2
Commit Name: 9a21d96b6fbbd7374da998d2e6143a7473a1330a
Time: 2014-01-15
Author: marcel.stimberg@ens.fr
File Name: brian2/core/variables.py
Class Name: AuxiliaryVariable
Method Name: __init__


Project Name: brian-team/brian2
Commit Name: 5f24feef91d2a4ac1cb5b36c5123e1bc869bf958
Time: 2014-04-02
Author: marcel.stimberg@ens.fr
File Name: brian2/groups/neurongroup.py
Class Name: NeuronGroup
Method Name: _create_variables