Advertisement
AlexErin1308

Task №6

Mar 6th, 2024
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | Source Code | 0 0
  1. import pandas as pd
  2.  
  3. metrica = pd.read_csv('/datasets/metrica_data.csv')
  4. mobile_data = metrica[metrica['device_type']=='mobile']#фильтр таблицы по столбцу 'device_type' с условием = 'mobile'
  5. print (mobile_data.head())#выводим на печать первые 5 строк
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement