@@ -39,13 +39,6 @@ def test_getitem_pop_assign_name(self, float_frame):
39
39
s2 = s .loc [:]
40
40
assert s2 .name == "B"
41
41
42
- def test_get_value (self , float_frame ):
43
- for idx in float_frame .index :
44
- for col in float_frame .columns :
45
- result = float_frame ._get_value (idx , col )
46
- expected = float_frame [col ][idx ]
47
- tm .assert_almost_equal (result , expected )
48
-
49
42
def test_add_prefix_suffix (self , float_frame ):
50
43
with_prefix = float_frame .add_prefix ("foo#" )
51
44
expected = pd .Index ([f"foo#{ c } " for c in float_frame .columns ])
@@ -315,27 +308,6 @@ def test_sequence_like_with_categorical(self):
315
308
def test_len (self , float_frame ):
316
309
assert len (float_frame ) == len (float_frame .index )
317
310
318
- def test_values_mixed_dtypes (self , float_frame , float_string_frame ):
319
- frame = float_frame
320
- arr = frame .values
321
-
322
- frame_cols = frame .columns
323
- for i , row in enumerate (arr ):
324
- for j , value in enumerate (row ):
325
- col = frame_cols [j ]
326
- if np .isnan (value ):
327
- assert np .isnan (frame [col ][i ])
328
- else :
329
- assert value == frame [col ][i ]
330
-
331
- # mixed type
332
- arr = float_string_frame [["foo" , "A" ]].values
333
- assert arr [0 , 0 ] == "bar"
334
-
335
- df = DataFrame ({"complex" : [1j , 2j , 3j ], "real" : [1 , 2 , 3 ]})
336
- arr = df .values
337
- assert arr [0 , 0 ] == 1j
338
-
339
311
# single block corner case
340
312
arr = float_frame [["A" , "B" ]].values
341
313
expected = float_frame .reindex (columns = ["A" , "B" ]).values
@@ -394,18 +366,6 @@ def test_class_axis(self):
394
366
assert pydoc .getdoc (DataFrame .index )
395
367
assert pydoc .getdoc (DataFrame .columns )
396
368
397
- def test_more_values (self , float_string_frame ):
398
- values = float_string_frame .values
399
- assert values .shape [1 ] == len (float_string_frame .columns )
400
-
401
- def test_repr_with_mi_nat (self , float_string_frame ):
402
- df = DataFrame (
403
- {"X" : [1 , 2 ]}, index = [[pd .NaT , pd .Timestamp ("20130101" )], ["a" , "b" ]]
404
- )
405
- result = repr (df )
406
- expected = " X\n NaT a 1\n 2013-01-01 b 2"
407
- assert result == expected
408
-
409
369
def test_items_names (self , float_string_frame ):
410
370
for k , v in float_string_frame .items ():
411
371
assert v .name == k
@@ -447,10 +407,6 @@ def test_with_datetimelikes(self):
447
407
expected = Series ({np .dtype ("object" ): 10 })
448
408
tm .assert_series_equal (result , expected )
449
409
450
- def test_values (self , float_frame ):
451
- float_frame .values [:, 0 ] = 5.0
452
- assert (float_frame .values [:, 0 ] == 5 ).all ()
453
-
454
410
def test_deepcopy (self , float_frame ):
455
411
cp = deepcopy (float_frame )
456
412
series = cp ["A" ]
0 commit comments