osi-dump 0.1.3.1.5__py3-none-any.whl → 0.1.3.1.7__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.
- osi_dump/util/openstack_util.py +1 -1
- osi_dump/util/panda_excel.py +1 -8
- {osi_dump-0.1.3.1.5.dist-info → osi_dump-0.1.3.1.7.dist-info}/METADATA +1 -1
- {osi_dump-0.1.3.1.5.dist-info → osi_dump-0.1.3.1.7.dist-info}/RECORD +7 -7
- {osi_dump-0.1.3.1.5.dist-info → osi_dump-0.1.3.1.7.dist-info}/WHEEL +0 -0
- {osi_dump-0.1.3.1.5.dist-info → osi_dump-0.1.3.1.7.dist-info}/entry_points.txt +0 -0
- {osi_dump-0.1.3.1.5.dist-info → osi_dump-0.1.3.1.7.dist-info}/top_level.txt +0 -0
osi_dump/util/openstack_util.py
CHANGED
osi_dump/util/panda_excel.py
CHANGED
@@ -18,14 +18,7 @@ def expand_list_column(df, column):
|
|
18
18
|
# Flatten the nested dictionaries into separate columns
|
19
19
|
expanded_df = pd.json_normalize(expanded_df.to_dict(orient="records"))
|
20
20
|
|
21
|
-
|
22
|
-
for i in range(max_len):
|
23
|
-
for key in expanded_df.columns[i::max_len]:
|
24
|
-
new_key = key.split(".")[-1] # Get the actual key name
|
25
|
-
new_columns.append(f"{column}_{i+1}.{new_key}")
|
26
|
-
|
27
|
-
# Rename the columns to reflect the nested structure
|
28
|
-
expanded_df.columns = new_columns
|
21
|
+
expanded_df = expanded_df.add_prefix(column)
|
29
22
|
|
30
23
|
# Drop the original column and join the expanded columns
|
31
24
|
df = df.drop(column, axis=1).join(expanded_df)
|
@@ -105,11 +105,11 @@ osi_dump/util/excel_autosize_column.py,sha256=zzQ6uXkQhHAqVn9fUAgNjoCH_HiNEC9Dcj
|
|
105
105
|
osi_dump/util/excel_sort_sheet.py,sha256=o4jXtP1ZFYtAGzkAP5S8Tym4h-SEoFBAI3j24y-24UM,1047
|
106
106
|
osi_dump/util/export_data_excel.py,sha256=VYSxDBZ7dgSbTj3n_8RRPqe183tILNh6wJW-UnFvJUU,882
|
107
107
|
osi_dump/util/extract_hostname.py,sha256=IpdklGHevmtRu67xeSRE_5n2mvWGI1sDsnJwExo_AR0,111
|
108
|
-
osi_dump/util/openstack_util.py,sha256=
|
109
|
-
osi_dump/util/panda_excel.py,sha256=
|
108
|
+
osi_dump/util/openstack_util.py,sha256=mPWLoVdSg4mukqtX87fN0Q9aDcRicJIqIsIOIIu1PnY,591
|
109
|
+
osi_dump/util/panda_excel.py,sha256=owr8AffIxqN3yY8kIv55Ox4j2dRz7kXZvSZFZeft8dw,734
|
110
110
|
osi_dump/util/validate_dir_path.py,sha256=pL_OrY8JnNwk3vj6Zp6bsZtgHXhszSGRoqIt-1G5S90,507
|
111
|
-
osi_dump-0.1.3.1.
|
112
|
-
osi_dump-0.1.3.1.
|
113
|
-
osi_dump-0.1.3.1.
|
114
|
-
osi_dump-0.1.3.1.
|
115
|
-
osi_dump-0.1.3.1.
|
111
|
+
osi_dump-0.1.3.1.7.dist-info/METADATA,sha256=8jixQ6aJxc9KwKZ4VK6eYdcuXR0VuG48pZInsP3q6bI,677
|
112
|
+
osi_dump-0.1.3.1.7.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
113
|
+
osi_dump-0.1.3.1.7.dist-info/entry_points.txt,sha256=ozm5sIBtXzLv6_FiUe26v1BgA3_xUReGLPhKQKZ56wQ,46
|
114
|
+
osi_dump-0.1.3.1.7.dist-info/top_level.txt,sha256=OtAAwmJfcoPvlw_Cemo_H1aXIGV_7w0O2941KQt6faQ,9
|
115
|
+
osi_dump-0.1.3.1.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|