From 67f3be69a08732f7727033e7d9b694f4024ce719 Mon Sep 17 00:00:00 2001 From: serr Date: Sat, 23 Nov 2024 12:01:14 +0300 Subject: [PATCH] . --- .vs/poli/v17/.suo | Bin 0 -> 37376 bytes poli.py | 20 ++++++++++++++++++++ poli.pyproj | 35 +++++++++++++++++++++++++++++++++++ poli.sln | 23 +++++++++++++++++++++++ 4 files changed, 78 insertions(+) create mode 100644 .vs/poli/v17/.suo create mode 100644 poli.py create mode 100644 poli.pyproj create mode 100644 poli.sln diff --git a/.vs/poli/v17/.suo b/.vs/poli/v17/.suo new file mode 100644 index 0000000000000000000000000000000000000000..eadb2a617726158f3783c50519129483d2f2511c GIT binary patch literal 37376 zcmeHQd2A!sc^|FitBKR~?bxm@+w0hlmJ)|I*Y_t(a1(G5)&;TuvB1O{x?H~2__swvY zBQ7ZoCGBRFC{_S|I4#4-~2Yy=Z-U%Fz=kclDSL~KB4e4 zhZ*Kwcs~Sq=k)2*6h-myj@HsmCe01cJSM42*&Ug-6B(AcqYuG znJiPrZ-L>Md8Uq*D4{e}M(Cy+_Bg^EnjrjFApt#yrBjCgDPBI*olJ85sor&zq=xq3 z05Oyx4d9d?4)6p2$n|$1pC5Mfx*X5{qk{K2n$y=Hj)KWg^&?tvHQ-7BwcqssC*W5A zzY3tV@5b}GuAkn?(f8zz_k~NLJO92P-%SIK0%+LG0A>MN01MCo^Z*0E2)G5XQ?4hv zY2MS9)`fRBzyo-1U))Z49>nJF9E&`_zK{60bd3D z9^h+$rvc9ZDBrK+`Hik$#`QejUjY0e;6=b60sa{9CxCAPDBVkVz6^K;@MnNm0rK~V z9y=8+FweBWW$@s3sv;B=oQD%34YcWYPUe3uK_Wu8U0ONrIe3nd-~eX_$5R96RROot zz*8;XBYn*pA&CKZoBcHfOKhM z%%Y4br9S)j-d*7TB(fPz%W^heWr&h`DZ|zH$NfK?|G60YKZzMt#SE-5YfKO`jJOce zfi<9INrD$5euMO3^yHAP-|4`Aki2&*fW~2e{GfN@m1O>FJ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^~TF<8%A3t8%eK3v!-^_=ZSjL6>FMnvz=M%Y=d3LFexv) zOHR(aqzkP~`@)5Vkja`~D6SY)r;W$GY2HQEU27ELJ9wM#H zTDABjt3RpCM$BvHpHWWKoPGPm{zxAWh-aPY{@UX>10c7_&Sj?*i*JpVzCYI^IHj@m zKNt!O?QGIH2Nvf!=yy9uXTj(M1l?@Cw@a)g8_2{&cBK1U_NNC9u>401EM1^}k;;GL z`+VqDZ@S@!cA$sd=Oaqo&?h literal 0 HcmV?d00001 diff --git a/poli.py b/poli.py new file mode 100644 index 0000000..7c01d27 --- /dev/null +++ b/poli.py @@ -0,0 +1,20 @@ +# -*- coding: cp1251 -*- + +import pandas as pd + +ROWS_PER_FILE = 199 + +df = pd.read_excel('FILENAME.xlsx') + +ROWS_PER_FILE = 199 +num_files = (len(df) // ROWS_PER_FILE) + (1 if len(df) % ROWS_PER_FILE > 0 else 0) + +for i in range(num_files): + start_row = i * ROWS_PER_FILE + end_row = start_row + ROWS_PER_FILE + df_subset = df.iloc[start_row:end_row] + + output_filename = f'File_{i + 1}.xlsx' + df_subset.to_excel(output_filename, index=False) + +print(f'Создано {num_files} файлов.') diff --git a/poli.pyproj b/poli.pyproj new file mode 100644 index 0000000..a7f70e7 --- /dev/null +++ b/poli.pyproj @@ -0,0 +1,35 @@ + + + Debug + 2.0 + 449a49cf-3fa1-4417-a668-4cb481f000d8 + . + poli.py + + + . + . + poli + poli + + + true + false + + + true + false + + + + + + + + + + + + \ No newline at end of file diff --git a/poli.sln b/poli.sln new file mode 100644 index 0000000..1af1c3b --- /dev/null +++ b/poli.sln @@ -0,0 +1,23 @@ +п»ї +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.3.32929.385 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{888888A0-9F3D-457C-B088-3A5042F75D52}") = "poli", "poli.pyproj", "{449A49CF-3FA1-4417-A668-4CB481F000D8}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {449A49CF-3FA1-4417-A668-4CB481F000D8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {449A49CF-3FA1-4417-A668-4CB481F000D8}.Release|Any CPU.ActiveCfg = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {C80A78DE-CACB-4BBC-85C3-B0FEE3B2964B} + EndGlobalSection +EndGlobal