Re: Untitled

From Mungo Tortoise, 3 Months ago, written in Plain Text, viewed 70 times. This paste is a reply to Untitled from Round Bird - view diff
URL http://codebin.org/view/0700d1f2 Embed
Download Paste or View Raw
  1. import numpy as np
  2. import pandas as pd
  3.  
  4. services = ['Минуты', 'СМС', 'Мбайты']
  5. packs_names = ['«За рулём»', '«В метро»']
  6. packs = np.array([
  7.     [20, 5],
  8.     [2, 5],
  9.     [500, 1000]])
  10.  
  11. clients_packs = np.array([
  12.     [1, 2],
  13.     [2, 3],
  14.     [4, 1],
  15.     [2, 3],
  16.     [5, 0]])
  17.  
  18. print('Пакеты')
  19. print(pd.DataFrame(clients_packs, columns=packs_names))
  20. print()
  21.  
  22. clients_services = np.dot(packs, clients_packs.Tpacks) # < напишите код здесь >
  23.  
  24. print('Минуты, СМС и Мбайты')
  25. print(pd.DataFrame(clients_services.T, columns=services))
  26. print()

Reply to "Re: Untitled"

Here you can reply to the paste above