116 Commits

Author SHA1 Message Date
Palash Tyagi
7e2a5ec18d Enhance DataFrame display: update head and tail methods for improved row retrieval and formatting; refine display output for empty DataFrames and adjust column width calculations. 2025-07-02 22:18:09 +01:00
Palash Tyagi
4038d25b07 applied formatting 2025-07-02 00:25:45 +01:00
Palash Tyagi
aa15248b58 Rename variable for clarity in DataFrame display formatting 2025-07-02 00:25:31 +01:00
Palash Tyagi
fa392ec631 Add head_n and tail_n methods to DataFrame for row retrieval; enhance display formatting 2025-07-02 00:22:52 +01:00
Palash Tyagi
8b6f16236a Refactor TypedFrame methods using macros for common functionality and improve column accessors 2025-07-01 23:26:57 +01:00
Palash Tyagi
2607d9c3b0 Add pub use statement for DataFrame, DataFrameColumn, and TypedFrame in mod.rs 2025-06-22 21:15:12 +01:00
Palash Tyagi
57ed06f79b Reimplemented dataframe class with TypedFrame interface 2025-06-22 19:47:12 +01:00
Palash Tyagi
01a132264f Remove unused imports and clean up test module in DataFrame implementation 2025-06-22 05:44:24 +01:00
Palash Tyagi
ff4535c56b Implement column renaming in DataFrame, updating both logical names and underlying Frame references. 2025-06-22 05:35:48 +01:00
9b480e8130
Merge branch 'main' into dataframe 2025-06-22 05:22:06 +01:00
Palash Tyagi
453e34ef82 Improve panic message for invalid Range index in Frame::new test 2025-06-22 05:19:52 +01:00
Palash Tyagi
092a7b7cce Validate range index length in Frame::new to prevent mismatches with matrix rows 2025-06-22 05:08:05 +01:00
Palash Tyagi
fe666a4ddb First draft: Implement DataFrame and DataFrameColumn structures 2025-06-22 05:01:19 +01:00
Palash Tyagi
b80d5ab381 Add documentation for the DataFrame module and include it in the library 2025-06-22 05:00:59 +01:00
Palash Tyagi
49f7558225 Enhance column access methods to clarify usage by name and physical index 2025-06-22 05:00:42 +01:00
Palash Tyagi
f1ab33ed96 Fix comments to remove placeholder text in usage examples for BDatesList and DatesList 2025-06-07 11:35:55 +01:00
Palash Tyagi
80196f8a53 Enhance element-wise and bitwise operation implementations for Frame<T> and Frame<bool> 2025-06-02 20:10:39 +01:00
Palash Tyagi
bc00035bc0 Add type alias for DateFreq to enhance clarity in business date frequency representation 2025-05-15 00:09:23 +01:00
Palash Tyagi
8f3bc6843b Refactor module exports in mod.rs for clarity and consistency 2025-05-15 00:09:11 +01:00
Palash Tyagi
127e178b79 Remove commented-out code and streamline module exports in dateutils 2025-05-15 00:08:58 +01:00
Palash Tyagi
52729e55be Clean up comments and improve code clarity 2025-05-15 00:00:56 +01:00
Palash Tyagi
c37659f09d removing unused comments and cleaning up the code structure 2025-05-14 23:54:11 +01:00
Palash Tyagi
629c9d84e2 Refactor groups method in BDatesList to use dates::group_dates_helper 2025-05-14 23:52:11 +01:00
Palash Tyagi
f5fd935475 Refactor groups method in DatesList to use a helper function for modularity 2025-05-14 23:51:36 +01:00
Palash Tyagi
86fec0a6b1 Remove outdated comments from tests to improve code clarity 2025-05-13 00:06:27 +01:00
Palash Tyagi
df28440dfd Refactor BDatesGenerator to utilize DatesGenerator for improved date handling and remove unused functions 2025-05-13 00:04:41 +01:00
Palash Tyagi
f4d52f0ce8 Make fields in DatesGenerator public for improved accessibility 2025-05-13 00:04:33 +01:00
Palash Tyagi
d8239114cf Refactor date utility exports for clarity and maintainability 2025-05-11 22:39:56 +01:00
Palash Tyagi
c1834c0141 Comment out unused date utility exports for clarity 2025-05-11 22:39:51 +01:00
Palash Tyagi
fb63b3fd3d refactored bdates to depend on dates util 2025-05-11 22:39:45 +01:00
Palash Tyagi
b1a2a2260d Make date utility functions public for improved accessibility 2025-05-11 22:39:08 +01:00
77983eef77
Merge branch 'main' into date_utils 2025-05-11 02:00:34 +01:00
Palash Tyagi
2e980a78fa Update documentation for Matrix struct to clarify indexing method 2025-05-11 00:46:46 +01:00
e2db5eb315
Merge branch 'main' into date_utils 2025-05-03 01:32:47 +01:00
Palash Tyagi
b17863dcdc Organize code structure by adding section comments 2025-05-03 01:18:24 +01:00
Palash Tyagi
ac0eed2d56 Add comprehensive arithmetic and boolean logic tests for Matrix operations 2025-05-03 01:17:01 +01:00
Palash Tyagi
73a30d45c5 Rename test matrix creation functions for clarity and consistency 2025-05-03 01:16:33 +01:00
Palash Tyagi
3cb68be062 Refactor element-wise arithmetic operations to use a centralized dimension check for improved error handling 2025-05-03 01:11:59 +01:00
Palash Tyagi
ca734fbedf Enhance bitwise operations for boolean matrices and implement logical NOT for both owned and borrowed matrices 2025-05-03 00:39:08 +01:00
Palash Tyagi
36a0846efa Enhance element-wise arithmetic operations for Matrix + Scalar to support in-place modifications and improve performance 2025-05-03 00:38:07 +01:00
Palash Tyagi
7f587a7b7e Enhance element-wise arithmetic operations for Matrix to support multiple ownership variants and improve in-place modifications 2025-05-03 00:37:06 +01:00
Palash Tyagi
a30a7101e8 Refactor element-wise comparison macro to improve naming consistency 2025-05-03 00:36:03 +01:00
Palash Tyagi
10c6116f8f Enhance element-wise comparison methods to optimize data handling 2025-05-03 00:35:34 +01:00
Palash Tyagi
ecb1939ec2 Enhance error messages in Broadcastable trait to clarify row and column count mismatches 2025-05-03 00:32:46 +01:00
Palash Tyagi
bdd0a23096 Enhance add_column and add_row methods to handle empty matrices and improve error handling 2025-05-03 00:31:11 +01:00
Palash Tyagi
4c02006153 Optimize column swapping logic to handle empty matrices and prevent unnecessary swaps 2025-05-03 00:29:14 +01:00
Palash Tyagi
9fd3582061 Refactor delete_row method to improve bounds checking and optimize data rebuilding 2025-05-03 00:26:43 +01:00
Palash Tyagi
8574d86abc Enhance delete_column method to improve efficiency of column removal 2025-05-03 00:26:21 +01:00
Palash Tyagi
20727a2b91 Improve column swapping logic to handle empty matrices and prevent overlapping swaps 2025-05-03 00:25:45 +01:00
Palash Tyagi
f91ddc5c41 Improve assertions and documentation for matrix operations; allow 0-row matrices from empty columns. 2025-05-01 23:56:06 +01:00