Giter Club home page Giter Club logo

pandas-tutorial's Introduction

ДЗ:

Домашнее задание включает в себя 2 задачи:

  1. Даны 3 колонки с данными: 'Name', 'Start Date' и 'End Date'. 'Name' - уникальное название заявки, пришедшей в центр технической поддержки. 'Start Date' - время поступления заявки. 'End Date' - время обработки заявок.

    Необходимо рассчитать еще одну колонку - 'Implementation time', показывающую количество рабочих часов (https://en.wikipedia.org/wiki/Business_hours), потраченных на обработку каждой заявки.

    Рабочие часы начинаются в 08:00 и заканчиваются в 18:00. Рабочая неделя ПН-ПТ, есть праздники (РФ).

    Пример (Даты в ISO):

    Name Start Date End Date Implementation time Comment
    1 2020-11-01T08:00:00 2020-11-01T18:00:00 0 Выходной
    2 2020-11-01T08:00:00 2020-11-02T09:30:00 1.5 Выходной + 1.5 часа в ПН
    3 2020-11-01T08:00:00 2020-11-05T19:00:00 24 Выходной + 8 ПН + 8 ВТ + СР - выходной + 8 ЧТ

    И т.д.

    Для задания необходимо:

    • Самостоятельно сгенерировать случайные 'Name', 'Start Date' и 'End Date' при условии 01-01-2019 <= 'Start Date' <= 'End Date' < 01-01-2020 (N датасетов, где размер датасета 10^N, N < 8 - натуральное).
    • По исходным данным построить гистограмму "сколько поступило и обработано заявок по месяцам".
    • Построить график скорости работы вашей программы в зависимости от N.
    • Написать тесты с пояснениями.
  2. По первой ДЗ с БД написать аналог на Pandas. Сравнить производительность с запросами к БД (pd.read_csv, pd.read_sql и без pandas). Результаты оформить в jupyter notebook.

pandas-tutorial's People

Contributors

rch9 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.