@@ -925,7 +925,7 @@ class StitchedStatement:
925
925
financial statement from multiple filings.
926
926
"""
927
927
928
- def __init__ (self , xbrls , statement_type : str , max_periods : int = 8 , standardize : bool = True ,
928
+ def __init__ (self , xbrls , statement_type : str , max_periods : int = 8 , standard : bool = True ,
929
929
use_optimal_periods : bool = True , include_dimensions : bool = False ):
930
930
"""
931
931
Initialize with XBRLS object and statement parameters.
@@ -934,14 +934,14 @@ def __init__(self, xbrls, statement_type: str, max_periods: int = 8, standardize
934
934
xbrls: XBRLS object containing stitched data
935
935
statement_type: Type of statement ('BalanceSheet', 'IncomeStatement', etc.)
936
936
max_periods: Maximum number of periods to include
937
- standardize : Whether to use standardized concept labels
937
+ standard : Whether to use standardized concept labels
938
938
use_optimal_periods: Whether to use entity info to determine optimal periods
939
939
include_dimensions: Whether to include dimensional segment data (default: False for stitching)
940
940
"""
941
941
self .xbrls = xbrls
942
942
self .statement_type = statement_type
943
943
self .max_periods = max_periods
944
- self .standardize = standardize
944
+ self .standard = standard
945
945
self .use_optimal_periods = use_optimal_periods
946
946
self .include_dimensions = include_dimensions
947
947
self .show_date_range = False # Default to not showing date ranges
@@ -972,7 +972,7 @@ def statement_data(self):
972
972
self ._statement_data = self .xbrls .get_statement (
973
973
self .statement_type ,
974
974
self .max_periods ,
975
- self .standardize ,
975
+ self .standard ,
976
976
self .use_optimal_periods ,
977
977
self .include_dimensions
978
978
)
@@ -1041,97 +1041,97 @@ def __init__(self, xbrls):
1041
1041
"""
1042
1042
self .xbrls = xbrls
1043
1043
1044
- def balance_sheet (self , max_periods : int = 8 , standardize : bool = True ,
1044
+ def balance_sheet (self , max_periods : int = 8 , standard : bool = True ,
1045
1045
use_optimal_periods : bool = True , show_date_range : bool = False ) -> Optional [StitchedStatement ]:
1046
1046
"""
1047
1047
Get a stitched balance sheet across multiple time periods.
1048
1048
1049
1049
Args:
1050
1050
max_periods: Maximum number of periods to include
1051
- standardize : Whether to use standardized concept labels
1051
+ standard : Whether to use standardized concept labels
1052
1052
use_optimal_periods: Whether to use entity info to determine optimal periods
1053
1053
show_date_range: Whether to show full date ranges for duration periods
1054
1054
1055
1055
Returns:
1056
1056
StitchedStatement for the balance sheet
1057
1057
"""
1058
- statement = StitchedStatement (self .xbrls , 'BalanceSheet' , max_periods , standardize , use_optimal_periods )
1058
+ statement = StitchedStatement (self .xbrls , 'BalanceSheet' , max_periods , standard , use_optimal_periods )
1059
1059
if show_date_range :
1060
1060
statement .show_date_range = show_date_range
1061
1061
return statement
1062
1062
1063
- def income_statement (self , max_periods : int = 8 , standardize : bool = True ,
1063
+ def income_statement (self , max_periods : int = 8 , standard : bool = True ,
1064
1064
use_optimal_periods : bool = True , show_date_range : bool = False ) -> Optional [StitchedStatement ]:
1065
1065
"""
1066
1066
Get a stitched income statement across multiple time periods.
1067
1067
1068
1068
Args:
1069
1069
max_periods: Maximum number of periods to include
1070
- standardize : Whether to use standardized concept labels
1070
+ standard : Whether to use standardized concept labels
1071
1071
use_optimal_periods: Whether to use entity info to determine optimal periods
1072
1072
show_date_range: Whether to show full date ranges for duration periods
1073
1073
1074
1074
Returns:
1075
1075
StitchedStatement for the income statement
1076
1076
"""
1077
- statement = StitchedStatement (self .xbrls , 'IncomeStatement' , max_periods , standardize , use_optimal_periods )
1077
+ statement = StitchedStatement (self .xbrls , 'IncomeStatement' , max_periods , standard , use_optimal_periods )
1078
1078
if show_date_range :
1079
1079
statement .show_date_range = show_date_range
1080
1080
return statement
1081
1081
1082
- def cashflow_statement (self , max_periods : int = 8 , standardize : bool = True ,
1082
+ def cashflow_statement (self , max_periods : int = 8 , standard : bool = True ,
1083
1083
use_optimal_periods : bool = True , show_date_range : bool = False ) -> Optional [StitchedStatement ]:
1084
1084
"""
1085
1085
Get a stitched cash flow statement across multiple time periods.
1086
1086
1087
1087
Args:
1088
1088
max_periods: Maximum number of periods to include
1089
- standardize : Whether to use standardized concept labels
1089
+ standard : Whether to use standardized concept labels
1090
1090
use_optimal_periods: Whether to use entity info to determine optimal periods
1091
1091
show_date_range: Whether to show full date ranges for duration periods
1092
1092
1093
1093
Returns:
1094
1094
StitchedStatement for the cash flow statement
1095
1095
"""
1096
- statement = StitchedStatement (self .xbrls , 'CashFlowStatement' , max_periods , standardize , use_optimal_periods )
1096
+ statement = StitchedStatement (self .xbrls , 'CashFlowStatement' , max_periods , standard , use_optimal_periods )
1097
1097
if show_date_range :
1098
1098
statement .show_date_range = show_date_range
1099
1099
return statement
1100
1100
1101
- def statement_of_equity (self , max_periods : int = 8 , standardize : bool = True ,
1101
+ def statement_of_equity (self , max_periods : int = 8 , standard : bool = True ,
1102
1102
use_optimal_periods : bool = True , show_date_range : bool = False ) -> Optional [StitchedStatement ]:
1103
1103
"""
1104
1104
Get a stitched statement of changes in equity across multiple time periods.
1105
1105
1106
1106
Args:
1107
1107
max_periods: Maximum number of periods to include
1108
- standardize : Whether to use standardized concept labels
1108
+ standard : Whether to use standardized concept labels
1109
1109
use_optimal_periods: Whether to use entity info to determine optimal periods
1110
1110
show_date_range: Whether to show full date ranges for duration periods
1111
1111
1112
1112
Returns:
1113
1113
StitchedStatement for the statement of equity
1114
1114
"""
1115
- statement = StitchedStatement (self .xbrls , 'StatementOfEquity' , max_periods , standardize , use_optimal_periods )
1115
+ statement = StitchedStatement (self .xbrls , 'StatementOfEquity' , max_periods , standard , use_optimal_periods )
1116
1116
if show_date_range :
1117
1117
statement .show_date_range = show_date_range
1118
1118
return statement
1119
1119
1120
- def comprehensive_income (self , max_periods : int = 8 , standardize : bool = True ,
1120
+ def comprehensive_income (self , max_periods : int = 8 , standard : bool = True ,
1121
1121
use_optimal_periods : bool = True , show_date_range : bool = False ) -> Optional [StitchedStatement ]:
1122
1122
"""
1123
1123
Get a stitched statement of comprehensive income across multiple time periods.
1124
1124
1125
1125
Args:
1126
1126
max_periods: Maximum number of periods to include
1127
- standardize : Whether to use standardized concept labels
1127
+ standard : Whether to use standardized concept labels
1128
1128
use_optimal_periods: Whether to use entity info to determine optimal periods
1129
1129
show_date_range: Whether to show full date ranges for duration periods
1130
1130
1131
1131
Returns:
1132
1132
StitchedStatement for the comprehensive income statement
1133
1133
"""
1134
- statement = StitchedStatement (self .xbrls , 'ComprehensiveIncome' , max_periods , standardize , use_optimal_periods )
1134
+ statement = StitchedStatement (self .xbrls , 'ComprehensiveIncome' , max_periods , standard , use_optimal_periods )
1135
1135
if show_date_range :
1136
1136
statement .show_date_range = show_date_range
1137
1137
return statement
0 commit comments