data-manipulation 0.41__tar.gz → 0.42__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.
- {data_manipulation-0.41/data_manipulation.egg-info → data_manipulation-0.42}/PKG-INFO +1 -1
- {data_manipulation-0.41 → data_manipulation-0.42}/data_manipulation/_version.py +3 -3
- {data_manipulation-0.41 → data_manipulation-0.42}/data_manipulation/base.py +16 -0
- {data_manipulation-0.41 → data_manipulation-0.42}/data_manipulation/pandas_.py +24 -0
- {data_manipulation-0.41 → data_manipulation-0.42/data_manipulation.egg-info}/PKG-INFO +1 -1
- {data_manipulation-0.41 → data_manipulation-0.42}/LICENSE +0 -0
- {data_manipulation-0.41 → data_manipulation-0.42}/MANIFEST.in +0 -0
- {data_manipulation-0.41 → data_manipulation-0.42}/README.md +0 -0
- {data_manipulation-0.41 → data_manipulation-0.42}/data_manipulation/__init__.py +0 -0
- {data_manipulation-0.41 → data_manipulation-0.42}/data_manipulation/beautifulsoup_.py +0 -0
- {data_manipulation-0.41 → data_manipulation-0.42}/data_manipulation/boto3_.py +0 -0
- {data_manipulation-0.41 → data_manipulation-0.42}/data_manipulation/cryptography_.py +0 -0
- {data_manipulation-0.41 → data_manipulation-0.42}/data_manipulation/django_.py +0 -0
- {data_manipulation-0.41 → data_manipulation-0.42}/data_manipulation/flask_.py +0 -0
- {data_manipulation-0.41 → data_manipulation-0.42}/data_manipulation/geopandas_.py +0 -0
- {data_manipulation-0.41 → data_manipulation-0.42}/data_manipulation/kerberos_.py +0 -0
- {data_manipulation-0.41 → data_manipulation-0.42}/data_manipulation/mysql_connector_python_.py +0 -0
- {data_manipulation-0.41 → data_manipulation-0.42}/data_manipulation/openldap_.py +0 -0
- {data_manipulation-0.41 → data_manipulation-0.42}/data_manipulation/prometheus_.py +0 -0
- {data_manipulation-0.41 → data_manipulation-0.42}/data_manipulation/psycopg2_.py +0 -0
- {data_manipulation-0.41 → data_manipulation-0.42}/data_manipulation/psycopg_.py +0 -0
- {data_manipulation-0.41 → data_manipulation-0.42}/data_manipulation/pyspark_.py +0 -0
- {data_manipulation-0.41 → data_manipulation-0.42}/data_manipulation/smtplib_.py +0 -0
- {data_manipulation-0.41 → data_manipulation-0.42}/data_manipulation/sqlalchemy_.py +0 -0
- {data_manipulation-0.41 → data_manipulation-0.42}/data_manipulation.egg-info/SOURCES.txt +0 -0
- {data_manipulation-0.41 → data_manipulation-0.42}/data_manipulation.egg-info/dependency_links.txt +0 -0
- {data_manipulation-0.41 → data_manipulation-0.42}/data_manipulation.egg-info/requires.txt +0 -0
- {data_manipulation-0.41 → data_manipulation-0.42}/data_manipulation.egg-info/top_level.txt +0 -0
- {data_manipulation-0.41 → data_manipulation-0.42}/setup.cfg +0 -0
- {data_manipulation-0.41 → data_manipulation-0.42}/setup.py +0 -0
- {data_manipulation-0.41 → data_manipulation-0.42}/versioneer.py +0 -0
|
@@ -8,11 +8,11 @@ import json
|
|
|
8
8
|
|
|
9
9
|
version_json = '''
|
|
10
10
|
{
|
|
11
|
-
"date": "2024-
|
|
11
|
+
"date": "2024-08-03T10:19:19+0800",
|
|
12
12
|
"dirty": false,
|
|
13
13
|
"error": null,
|
|
14
|
-
"full-revisionid": "
|
|
15
|
-
"version": "0.
|
|
14
|
+
"full-revisionid": "30171014f9c6ac9bcb9c5aad60d40e662d35ab79",
|
|
15
|
+
"version": "0.42"
|
|
16
16
|
}
|
|
17
17
|
''' # END VERSION_JSON
|
|
18
18
|
|
|
@@ -121,6 +121,22 @@ def get_country_name_variation() -> dict:
|
|
|
121
121
|
return variations
|
|
122
122
|
|
|
123
123
|
|
|
124
|
+
def get_country_code_variation() -> dict:
|
|
125
|
+
variations = {
|
|
126
|
+
"BA": ["BOSNIA"],
|
|
127
|
+
"BW": ["AFRICA"],
|
|
128
|
+
"CN": ["REPUBLIC OF CHINA"],
|
|
129
|
+
"CZ": ["CZECH REPUBLIC"],
|
|
130
|
+
"KR": ["REPUBLIC OF KOREA"],
|
|
131
|
+
"MK": ["MACEDONIA"],
|
|
132
|
+
"RU": ["RUSSIAN FEDERATION"],
|
|
133
|
+
"SK": ["SLAVONIC", "SLOVAK REPUBLIC"],
|
|
134
|
+
"TR": ["TURKEY", "TURKIYE"],
|
|
135
|
+
"US": ["UNITED STATES"],
|
|
136
|
+
}
|
|
137
|
+
return variations
|
|
138
|
+
|
|
139
|
+
|
|
124
140
|
def list_tuple_without_none(list_tuple: list | tuple) -> list | tuple:
|
|
125
141
|
"""
|
|
126
142
|
Return the given list / tuple without None variation
|
|
@@ -20,6 +20,30 @@ def config_pandas_display():
|
|
|
20
20
|
pd.set_option("display.expand_frame_repr", True)
|
|
21
21
|
|
|
22
22
|
|
|
23
|
+
# JUPYTER
|
|
24
|
+
def is_running_in_jupyter():
|
|
25
|
+
"""
|
|
26
|
+
Running in jupyter?
|
|
27
|
+
|
|
28
|
+
Returns
|
|
29
|
+
-------
|
|
30
|
+
bool
|
|
31
|
+
True means running in jupyter env
|
|
32
|
+
"""
|
|
33
|
+
try:
|
|
34
|
+
# Check if the IPython module is available
|
|
35
|
+
from IPython import get_ipython
|
|
36
|
+
|
|
37
|
+
# Check if we are in a notebook environment
|
|
38
|
+
if "IPKernelApp" in get_ipython().config:
|
|
39
|
+
return True
|
|
40
|
+
else:
|
|
41
|
+
return False
|
|
42
|
+
# IPython module not found, not running in Jupyter Notebook
|
|
43
|
+
except ImportError:
|
|
44
|
+
return False
|
|
45
|
+
|
|
46
|
+
|
|
23
47
|
# COLUMN
|
|
24
48
|
def add_type_columns(dataframe):
|
|
25
49
|
"""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{data_manipulation-0.41 → data_manipulation-0.42}/data_manipulation/mysql_connector_python_.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{data_manipulation-0.41 → data_manipulation-0.42}/data_manipulation.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|