Giter VIP home page Giter VIP logo

brine_repo's Introduction

Brine Task

1.The code in 'Revenue.py' gives the following

Revenue By Month:
order_date
2022-01-31     50
2022-02-28    250
2022-03-31     70
2022-04-30    180
2022-05-31    140
2022-06-30    110
Freq: M, Name: revenue, dtype: int64

Revenue By Product:
product_name
Product A    280
Product B    160
Product C    360
Name: revenue, dtype: int64

evenue per Customer:
customer_id
C1    100
C2    160
C3    180
C4    360
Name: revenue, dtype: int64

2.The output of Testcases.py

customer_id
101    40.0
102    45.0
103    30.0
Name: revenue, dtype: float64
..product_name
Product A    50.0
Product B    45.0
Product C    20.0
Name: revenue, dtype: float64
102    45.0
101    40.0
103    30.0
Name: revenue, dtype: float64
customer_id
102    45.0
101    40.0
103    30.0
Name: revenue, dtype: float64
.
----------------------------------------------------------------------
Ran 4 tests in 0.023s

OK

To create docker images use the following commands

docker build --tag test:v1 -f Dockerfile_test .
docker build --tag python_task:v1 .

brine_repo's People

Contributors

kumar-challa avatar

Watchers

 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.