fslink 0.1.0__py3-none-any.whl

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.
fslink/__initi__.py ADDED
@@ -0,0 +1 @@
1
+ from .core import say_hello
fslink/core.py ADDED
@@ -0,0 +1,30 @@
1
+ def say_hello(name: str) -> str:
2
+ return f"Hello, {name}! Welcome to my package."
3
+
4
+ # my_package/data_processor.py
5
+ from pyspark.sql import SparkSession
6
+ from pyspark.sql import DataFrame
7
+
8
+ def transform_data(spark: SparkSession, df: DataFrame) -> DataFrame:
9
+ """Accepts a DataFrame, splits and link, and returns a new DataFrame."""
10
+ #Find features
11
+ #email,address,ssn,dob,lastname,firstname,phone
12
+
13
+ #
14
+
15
+
16
+
17
+ # 1. Perform your business logic / transformations
18
+ cleaned_df = df.dropna(subset=["customer_id"])
19
+ final_df = cleaned_df.dropDuplicates(["transaction_id"])
20
+
21
+ # 2. Return the DataFrame object back to Databricks
22
+ return final_df
23
+
24
+
25
+ def clean_dataframe(spark: SparkSession, df):
26
+ """Safely uses Spark inside a packaged module."""
27
+ # Do not call spark = SparkSession.builder... on Databricks clusters.
28
+ # Instead, accept the active notebook session passed by the user.
29
+ return df.dropDuplicates().dropna()
30
+
@@ -0,0 +1,12 @@
1
+ Metadata-Version: 2.4
2
+ Name: fslink
3
+ Version: 0.1.0
4
+ Summary: A simple record linkage package
5
+ Project-URL: Homepage, https://github.com
6
+ Classifier: Programming Language :: Python :: 3
7
+ Classifier: License :: OSI Approved :: MIT License
8
+ Classifier: Operating System :: OS Independent
9
+ Requires-Python: >=3.8
10
+ Description-Content-Type: text/markdown
11
+ License-File: LICENSE
12
+ Dynamic: license-file
@@ -0,0 +1,7 @@
1
+ fslink/__initi__.py,sha256=SfV0woikYS0YSV-LqZqAQebTlELBevpYSQ_KmkjnwDU,27
2
+ fslink/core.py,sha256=ZAY6Z34aT2FT2YO2eaKcPDHM6Yn0ka_cK5IP7YuS4p4,997
3
+ fslink-0.1.0.dist-info/licenses/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ fslink-0.1.0.dist-info/METADATA,sha256=c-xDJbPRAHt2D04LII_pJvMkTBrfZg0pwI90oc98j0E,398
5
+ fslink-0.1.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
6
+ fslink-0.1.0.dist-info/top_level.txt,sha256=htloryvW-rRKjveQjr7XIWIn4pW7M1cjeWf5QyGJGZU,7
7
+ fslink-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
File without changes
@@ -0,0 +1 @@
1
+ fslink