MCPcopy Create free account
hub / github.com/Axect/Peroxide / sample_df

Function sample_df

tests/dataframe/dataframe.rs:69–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67// =========================================================================
68
69fn sample_df() -> DataFrame {
70 let mut df = DataFrame::new(vec![]);
71 df.push("x", Series::new(vec![1, 2, 3, 4]));
72 df.push("y", Series::new(vec![0.1, 0.2, 0.3, 0.4]));
73 df.push("z", Series::new(vec!['a', 'b', 'c', 'd']));
74 df
75}
76
77#[test]
78fn test_nrow() {

Callers 15

test_nrowFunction · 0.85
test_ncolFunction · 0.85
test_shapeFunction · 0.85
test_dtypesFunction · 0.85
test_is_emptyFunction · 0.85
test_containsFunction · 0.85
test_headFunction · 0.85
test_tailFunction · 0.85
test_sliceFunction · 0.85
test_slice_beyond_endFunction · 0.85

Calls 1

pushMethod · 0.80

Tested by 15

test_nrowFunction · 0.68
test_ncolFunction · 0.68
test_shapeFunction · 0.68
test_dtypesFunction · 0.68
test_is_emptyFunction · 0.68
test_containsFunction · 0.68
test_headFunction · 0.68
test_tailFunction · 0.68
test_sliceFunction · 0.68
test_slice_beyond_endFunction · 0.68