- import numpy as np
- import pandas as pd
- services = ['Минуты', 'СМС', 'Мбайты']
- packs_names = ['«За рулём»', '«В метро»']
- packs = np.array([
- [20, 5],
- [2, 5],
- [500, 1000]])
- clients_packs = np.array([
- [1, 2],
- [2, 3],
- [4, 1],
- [2, 3],
- [5, 0]])
- print('Пакеты')
- print(pd.DataFrame(clients_packs, columns=packs_names))
- print()
- clients_services = np.dot(packs, clients_packs.Tpacks) # < напишите код здесь >
- print('Минуты, СМС и Мбайты')
- print(pd.DataFrame(clients_services.T, columns=services))
- print()
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
— Expand Paste to full width of browser