app
This commit is contained in:
commit
fa0597a63b
|
|
@ -0,0 +1,3 @@
|
||||||
|
# Default ignored files
|
||||||
|
/shelf/
|
||||||
|
/workspace.xml
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
<component name="InspectionProjectProfileManager">
|
||||||
|
<profile version="1.0">
|
||||||
|
<option name="myName" value="Project Default" />
|
||||||
|
<inspection_tool class="PyPackageRequirementsInspection" enabled="true" level="WARNING" enabled_by_default="true">
|
||||||
|
<option name="ignoredPackages">
|
||||||
|
<value>
|
||||||
|
<list size="2">
|
||||||
|
<item index="0" class="java.lang.String" itemvalue="Werkzeug" />
|
||||||
|
<item index="1" class="java.lang.String" itemvalue="Flask" />
|
||||||
|
</list>
|
||||||
|
</value>
|
||||||
|
</option>
|
||||||
|
</inspection_tool>
|
||||||
|
</profile>
|
||||||
|
</component>
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
<component name="InspectionProjectProfileManager">
|
||||||
|
<settings>
|
||||||
|
<option name="USE_PROJECT_PROFILE" value="false" />
|
||||||
|
<version value="1.0" />
|
||||||
|
</settings>
|
||||||
|
</component>
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="Black">
|
||||||
|
<option name="sdkName" value="Python 3.12 (pythonProject_pandas)" />
|
||||||
|
</component>
|
||||||
|
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.12 (pythonProject_pandas)" project-jdk-type="Python SDK" />
|
||||||
|
</project>
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/pythonProject_pandas.iml" filepath="$PROJECT_DIR$/.idea/pythonProject_pandas.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="PYTHON_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager">
|
||||||
|
<content url="file://$MODULE_DIR$">
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/.venv" />
|
||||||
|
</content>
|
||||||
|
<orderEntry type="inheritedJdk" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
</module>
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
FROM python:3.9-slim
|
||||||
|
#COPY . .
|
||||||
|
COPY . /app
|
||||||
|
WORKDIR /app
|
||||||
|
RUN pip install pandas
|
||||||
|
CMD ["python", "app.py"]
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
import pandas as pd
|
||||||
|
|
||||||
|
df = pd.read_csv('data.csv')
|
||||||
|
|
||||||
|
print(f'Средняя зарплата сотрудников: {df.salary.mean()}')
|
||||||
|
print('Сотрудники старше 30 лет:')
|
||||||
|
print(df[df.age > 30])
|
||||||
|
|
@ -0,0 +1,21 @@
|
||||||
|
name,age,salary
|
||||||
|
Alice,30,70000
|
||||||
|
Bob,25,50000
|
||||||
|
Charlie,35,100000
|
||||||
|
David,40,120000
|
||||||
|
Eve,28,60000
|
||||||
|
Frank,50,150000
|
||||||
|
Grace,33,80000
|
||||||
|
Hank,29,55000
|
||||||
|
Ivy,42,110000
|
||||||
|
Jack,31,90000
|
||||||
|
Kathy,36,95000
|
||||||
|
Leo,24,48000
|
||||||
|
Mona,34,87000
|
||||||
|
Nina,26,65000
|
||||||
|
Oscar,45,140000
|
||||||
|
Paul,38,102000
|
||||||
|
Quinn,37,98000
|
||||||
|
Rachel,27,62000
|
||||||
|
Steve,32,93000
|
||||||
|
Tom,41,113000
|
||||||
|
Loading…
Reference in New Issue