xlin 0.1.17__py2.py3-none-any.whl → 0.1.18__py2.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.
- xlin/read_as_dataframe.py +4 -1
- xlin/xls2xlsx.py +2 -2
- {xlin-0.1.17.dist-info → xlin-0.1.18.dist-info}/METADATA +1 -1
- {xlin-0.1.17.dist-info → xlin-0.1.18.dist-info}/RECORD +6 -6
- {xlin-0.1.17.dist-info → xlin-0.1.18.dist-info}/LICENSE +0 -0
- {xlin-0.1.17.dist-info → xlin-0.1.18.dist-info}/WHEEL +0 -0
xlin/read_as_dataframe.py
CHANGED
@@ -162,7 +162,10 @@ def save_df(df: pd.DataFrame, output_filepath: Union[str, Path]):
|
|
162
162
|
|
163
163
|
|
164
164
|
def lazy_build_dataframe(
|
165
|
-
name: str,
|
165
|
+
name: str,
|
166
|
+
output_filepath: Path,
|
167
|
+
func,
|
168
|
+
filetype: str = "xlsx",
|
166
169
|
):
|
167
170
|
logger.info(name)
|
168
171
|
output_filepath.parent.mkdir(parents=True, exist_ok=True)
|
xlin/xls2xlsx.py
CHANGED
@@ -4,13 +4,13 @@ import os
|
|
4
4
|
import pyexcel as p
|
5
5
|
|
6
6
|
|
7
|
-
def convert_xls_dir_to_xlsx(data_dir):
|
7
|
+
def convert_xls_dir_to_xlsx(data_dir: str):
|
8
8
|
filenames = os.listdir(data_dir)
|
9
9
|
for filename in filenames:
|
10
10
|
if filename.endswith(".xls"):
|
11
11
|
convert_xls_to_xlsx(os.path.join(data_dir, filename))
|
12
12
|
|
13
|
-
def convert_xls_to_xlsx(file_name):
|
13
|
+
def convert_xls_to_xlsx(file_name: str) -> str:
|
14
14
|
converted_filename = file_name + 'x'
|
15
15
|
if is_xslx(file_name):
|
16
16
|
# rename to .xlsx
|
@@ -3,13 +3,13 @@ xlin/ischinese.py,sha256=Ia9IMQ6q-UHkdLwqS70L1fTnfSPbluFrv_I1UqsKquo,293
|
|
3
3
|
xlin/jsonl.py,sha256=DvVM241a9VgQlp5WIMPRv-JIolT0RdSxw47IG_fc7xE,6690
|
4
4
|
xlin/metric.py,sha256=N7wJ35y-C-IaBr1I1CJ_37lTG7gA69zmn9Xg6xSwKoI,1690
|
5
5
|
xlin/multiprocess_mapping.py,sha256=pmzyEUYpbpIZ_ezyvWWWRpr7D7n4t3E3jW1nGXBbVck,7652
|
6
|
-
xlin/read_as_dataframe.py,sha256=
|
6
|
+
xlin/read_as_dataframe.py,sha256=T8A4qk4Grof_WC_mNz4QVaWDQgJ103rUAQ8tsamm8SQ,8898
|
7
7
|
xlin/statistic.py,sha256=i0Z1gbW2IYHCA0lb16w1Ncrk0Q7Q1Ttm0n4we-ki6II,9301
|
8
8
|
xlin/timing.py,sha256=XMT8dMcMolOMohDvAZOIM_BAiPMREhGQKnO1kc5s6PU,998
|
9
9
|
xlin/util.py,sha256=TTWJaqF5D_r-gAZ_fj0kyHomvCagjwHXQZ2OPSgwd54,10976
|
10
|
-
xlin/xls2xlsx.py,sha256=
|
10
|
+
xlin/xls2xlsx.py,sha256=uSmXcDvIhi5Sq0LGidMXy0wErNBXdjaoa6EftYVjTXs,947
|
11
11
|
xlin/yaml.py,sha256=kICi7G3Td5q2MaSXXt85qNTWoHMgjzt7pvn7r3C4dME,183
|
12
|
-
xlin-0.1.
|
13
|
-
xlin-0.1.
|
14
|
-
xlin-0.1.
|
15
|
-
xlin-0.1.
|
12
|
+
xlin-0.1.18.dist-info/LICENSE,sha256=60ys6rRtc1dZOP8UjSUr9fAqhZudT3WpKe5WbMCralM,1066
|
13
|
+
xlin-0.1.18.dist-info/METADATA,sha256=BWrBEOgAePxk0-vrjAgh2da_YA3HORi3awuFbZZbBUY,1098
|
14
|
+
xlin-0.1.18.dist-info/WHEEL,sha256=IrRNNNJ-uuL1ggO5qMvT1GGhQVdQU54d6ZpYqEZfEWo,92
|
15
|
+
xlin-0.1.18.dist-info/RECORD,,
|
File without changes
|
File without changes
|