@@ -18,7 +18,6 @@ impl<'a> Row<'a> {
1818
1919impl DataFrame {
2020 /// Get a row from a DataFrame. Use of this is discouraged as it will likely be slow.
21- #[ cfg_attr( docsrs, doc( cfg( feature = "rows" ) ) ) ]
2221 pub fn get_row ( & self , idx : usize ) -> PolarsResult < Row > {
2322 let values = self
2423 . columns
@@ -31,7 +30,6 @@ impl DataFrame {
3130 /// Amortize allocations by reusing a row.
3231 /// The caller is responsible to make sure that the row has at least the capacity for the number
3332 /// of columns in the DataFrame
34- #[ cfg_attr( docsrs, doc( cfg( feature = "rows" ) ) ) ]
3533 pub fn get_row_amortized < ' a > ( & ' a self , idx : usize , row : & mut Row < ' a > ) -> PolarsResult < ( ) > {
3634 for ( s, any_val) in self . columns . iter ( ) . zip ( & mut row. 0 ) {
3735 * any_val = s. get ( idx) ?;
@@ -46,7 +44,6 @@ impl DataFrame {
4644 /// # Safety
4745 /// Does not do any bounds checking.
4846 #[ inline]
49- #[ cfg_attr( docsrs, doc( cfg( feature = "rows" ) ) ) ]
5047 pub unsafe fn get_row_amortized_unchecked < ' a > ( & ' a self , idx : usize , row : & mut Row < ' a > ) {
5148 self . columns
5249 . iter ( )
@@ -58,14 +55,12 @@ impl DataFrame {
5855
5956 /// Create a new DataFrame from rows. This should only be used when you have row wise data,
6057 /// as this is a lot slower than creating the `Series` in a columnar fashion
61- #[ cfg_attr( docsrs, doc( cfg( feature = "rows" ) ) ) ]
6258 pub fn from_rows_and_schema ( rows : & [ Row ] , schema : & Schema ) -> PolarsResult < Self > {
6359 Self :: from_rows_iter_and_schema ( rows. iter ( ) , schema)
6460 }
6561
6662 /// Create a new DataFrame from an iterator over rows. This should only be used when you have row wise data,
6763 /// as this is a lot slower than creating the `Series` in a columnar fashion
68- #[ cfg_attr( docsrs, doc( cfg( feature = "rows" ) ) ) ]
6964 pub fn from_rows_iter_and_schema < ' a , I > ( mut rows : I , schema : & Schema ) -> PolarsResult < Self >
7065 where
7166 I : Iterator < Item = & ' a Row < ' a > > ,
@@ -108,7 +103,6 @@ impl DataFrame {
108103
109104 /// Create a new DataFrame from rows. This should only be used when you have row wise data,
110105 /// as this is a lot slower than creating the `Series` in a columnar fashion
111- #[ cfg_attr( docsrs, doc( cfg( feature = "rows" ) ) ) ]
112106 pub fn from_rows ( rows : & [ Row ] ) -> PolarsResult < Self > {
113107 let schema = rows_to_schema_first_non_null ( rows, Some ( 50 ) ) ;
114108 let has_nulls = schema
@@ -177,7 +171,6 @@ impl DataFrame {
177171 }
178172 }
179173
180- #[ cfg_attr( docsrs, doc( cfg( feature = "rows" ) ) ) ]
181174 /// Transpose a DataFrame. This is a very expensive operation.
182175 pub fn transpose ( & self ) -> PolarsResult < DataFrame > {
183176 let height = self . height ( ) ;
0 commit comments