main
commit
67f3be69a0
Binary file not shown.
|
@ -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} ôàéëîâ.')
|
|
@ -0,0 +1,35 @@
|
|||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>449a49cf-3fa1-4417-a668-4cb481f000d8</ProjectGuid>
|
||||
<ProjectHome>.</ProjectHome>
|
||||
<StartupFile>poli.py</StartupFile>
|
||||
<SearchPath>
|
||||
</SearchPath>
|
||||
<WorkingDirectory>.</WorkingDirectory>
|
||||
<OutputPath>.</OutputPath>
|
||||
<Name>poli</Name>
|
||||
<RootNamespace>poli</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="poli.py" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Python Tools\Microsoft.PythonTools.targets" />
|
||||
<!-- Uncomment the CoreCompile target to enable the Build command in
|
||||
Visual Studio and specify your pre- and post-build commands in
|
||||
the BeforeBuild and AfterBuild targets below. -->
|
||||
<!--<Target Name="CoreCompile" />-->
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
</Project>
|
|
@ -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
|
Loading…
Reference in New Issue