rgwfuncs 0.0.19__tar.gz → 0.0.20__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: rgwfuncs
3
- Version: 0.0.19
3
+ Version: 0.0.20
4
4
  Summary: A functional programming paradigm for mathematical modelling and data science
5
5
  Home-page: https://github.com/ryangerardwilson/rgwfunc
6
6
  Author: Ryan Gerard Wilson
@@ -28,7 +28,7 @@ Requires-Dist: google-api-python-client
28
28
 
29
29
  ***By Ryan Gerard Wilson (https://ryangerardwilson.com)***
30
30
 
31
- This library is meant to make ML/ Data Science pipelines more readable. It assumes a linux environment, and the existence of a `rgwml.config` file for certain features (like db querying, sending data to slack, etc.)
31
+ This library is meant to make ML/ Data Science pipelines more readable. It assumes a linux environment, and the existence of a `.rgwfuncsrc` file for certain features (like db querying, sending data to slack, etc.)
32
32
 
33
33
  --------------------------------------------------------------------------------
34
34
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  ***By Ryan Gerard Wilson (https://ryangerardwilson.com)***
4
4
 
5
- This library is meant to make ML/ Data Science pipelines more readable. It assumes a linux environment, and the existence of a `rgwml.config` file for certain features (like db querying, sending data to slack, etc.)
5
+ This library is meant to make ML/ Data Science pipelines more readable. It assumes a linux environment, and the existence of a `.rgwfuncsrc` file for certain features (like db querying, sending data to slack, etc.)
6
6
 
7
7
  --------------------------------------------------------------------------------
8
8
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "rgwfuncs"
7
- version = "0.0.19"
7
+ version = "0.0.20"
8
8
  authors = [
9
9
  { name = "Ryan Gerard Wilson", email = "ryangerardwilson@gmail.com" },
10
10
  ]
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = rgwfuncs
3
- version = 0.0.19
3
+ version = 0.0.20
4
4
  author = Ryan Gerard Wilson
5
5
  author_email = ryangerardwilson@gmail.com
6
6
  description = A functional programming paradigm for mathematical modelling and data science
@@ -1673,21 +1673,16 @@ def print_n_frequency_cascading(
1673
1673
  print(json.dumps(report, indent=2))
1674
1674
 
1675
1675
 
1676
- def print_n_frequency_linear(
1677
- df: pd.DataFrame,
1678
- n: int,
1679
- columns: str,
1680
- order_by: str = "FREQ_DESC") -> None:
1676
+ def print_n_frequency_linear(df: pd.DataFrame, n: int, columns: list, order_by: str = "FREQ_DESC") -> None:
1681
1677
  """
1682
1678
  Print the linear frequency of top n values for specified columns.
1683
1679
 
1684
1680
  Parameters:
1685
1681
  df: DataFrame to analyze.
1686
1682
  n: Number of top values to print.
1687
- columns: Comma-separated column names to analyze.
1688
- order_by: Order of frequency: ACS, DESC, FREQ_ASC, FREQ_DESC.
1683
+ columns: List of column names to analyze.
1684
+ order_by: Order of frequency: ASC, DESC, FREQ_ASC, FREQ_DESC.
1689
1685
  """
1690
- columns = [col.strip() for col in columns.split(",")]
1691
1686
 
1692
1687
  def generate_linear_report(df, columns, limit, order_by):
1693
1688
  report = {}
@@ -1942,10 +1937,7 @@ def insert_dataframe_in_sqlite_database(db_path: str, tablename: str, df: pd.Dat
1942
1937
  df.to_sql(tablename, conn, if_exists='append', index=False)
1943
1938
 
1944
1939
 
1945
- def sync_dataframe_to_sqlite_database(
1946
- db_path: str,
1947
- tablename: str,
1948
- df: pd.DataFrame) -> None:
1940
+ def sync_dataframe_to_sqlite_database(db_path: str, tablename: str, df: pd.DataFrame) -> None:
1949
1941
  """
1950
1942
  Processes and saves a DataFrame to an SQLite database, adding a timestamp column
1951
1943
  and replacing the existing table if needed. Creates the table if it does not exist.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: rgwfuncs
3
- Version: 0.0.19
3
+ Version: 0.0.20
4
4
  Summary: A functional programming paradigm for mathematical modelling and data science
5
5
  Home-page: https://github.com/ryangerardwilson/rgwfunc
6
6
  Author: Ryan Gerard Wilson
@@ -28,7 +28,7 @@ Requires-Dist: google-api-python-client
28
28
 
29
29
  ***By Ryan Gerard Wilson (https://ryangerardwilson.com)***
30
30
 
31
- This library is meant to make ML/ Data Science pipelines more readable. It assumes a linux environment, and the existence of a `rgwml.config` file for certain features (like db querying, sending data to slack, etc.)
31
+ This library is meant to make ML/ Data Science pipelines more readable. It assumes a linux environment, and the existence of a `.rgwfuncsrc` file for certain features (like db querying, sending data to slack, etc.)
32
32
 
33
33
  --------------------------------------------------------------------------------
34
34
 
File without changes