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

Function test_head

tests/dataframe/dataframe.rs:123–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121
122#[test]
123fn test_head() {
124 let df = sample_df();
125 let h = df.head(2);
126 assert_eq!(h.nrow(), 2);
127 assert_eq!(h.ncol(), 3);
128 assert_eq!(h["x"], Series::new(vec![1, 2]));
129 assert_eq!(h["y"], Series::new(vec![0.1, 0.2]));
130}
131
132#[test]
133fn test_head_larger_than_nrow() {

Callers

nothing calls this directly

Calls 2

sample_dfFunction · 0.85
headMethod · 0.80

Tested by

no test coverage detected