osi-dump 0.1.3.1.6__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.
@@ -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
- new_columns = []
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)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: osi-dump
3
- Version: 0.1.3.1.6
3
+ Version: 0.1.3.1.7
4
4
  Summary: OpenStack information dump tool
5
5
  Author: TVKain
6
6
  License: Apache-2.0
@@ -106,10 +106,10 @@ osi_dump/util/excel_sort_sheet.py,sha256=o4jXtP1ZFYtAGzkAP5S8Tym4h-SEoFBAI3j24y-
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
108
  osi_dump/util/openstack_util.py,sha256=mPWLoVdSg4mukqtX87fN0Q9aDcRicJIqIsIOIIu1PnY,591
109
- osi_dump/util/panda_excel.py,sha256=GHHLguKLMm1sq4FHTPHABTjx7IqpOcGF_3OJT-cJORE,1011
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.6.dist-info/METADATA,sha256=uxdStaObiBhZVLiVJMkC03t8LF-0E182pMpwSY9_Oxc,677
112
- osi_dump-0.1.3.1.6.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
113
- osi_dump-0.1.3.1.6.dist-info/entry_points.txt,sha256=ozm5sIBtXzLv6_FiUe26v1BgA3_xUReGLPhKQKZ56wQ,46
114
- osi_dump-0.1.3.1.6.dist-info/top_level.txt,sha256=OtAAwmJfcoPvlw_Cemo_H1aXIGV_7w0O2941KQt6faQ,9
115
- osi_dump-0.1.3.1.6.dist-info/RECORD,,
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,,