chore: bump version to 1.0.13

This commit is contained in:
2024-06-15 18:46:19 -04:00
parent eb4ad2a8c2
commit 945aa1e2b9
25 changed files with 22536 additions and 79 deletions
+17
View File
@@ -0,0 +1,17 @@
def add_constant_column(df):
"""
Adds a constant column 'const' with value 1 as the first column to the DataFrame.
Parameters:
df (pd.DataFrame): Input DataFrame.
Returns:
pd.DataFrame: DataFrame with the added constant column as the first column.
"""
# Create a new DataFrame to avoid modifying the original DataFrame
df_with_const = df.copy()
# Add a constant column with value 1
df_with_const.insert(0, 'const', 1)
return df_with_const