James McCool
commited on
Commit
·
742ccf7
1
Parent(s):
9912bb5
Update concatenation method in create_general_exposures function
Browse files- Modified the dataframe concatenation to explicitly specify the axis parameter, enhancing clarity and preventing potential issues in future modifications.
- Maintained existing functionality while refining the data processing logic for improved reliability.
global_func/create_general_exposures.py
CHANGED
@@ -39,6 +39,6 @@ def create_general_exposures(df: pd.DataFrame, entrants: list = None):
|
|
39 |
if len(general_exposures) == 0:
|
40 |
general_exposures = general_row
|
41 |
else:
|
42 |
-
general_exposures = pd.concat([general_exposures, general_frame], ignore_index = True)
|
43 |
|
44 |
return general_exposures
|
|
|
39 |
if len(general_exposures) == 0:
|
40 |
general_exposures = general_row
|
41 |
else:
|
42 |
+
general_exposures = pd.concat([general_exposures, general_frame], ignore_index = True, axis = 0)
|
43 |
|
44 |
return general_exposures
|