Advertisement
Vitaliy_Novichikhin

17.1 ЯП первые 100 значений

Feb 3rd, 2022
934
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. import pandas
  2. realty_df = pandas.read_csv('yandex_realty_data.csv')
  3.  
  4. xc = list(realty_df['longitude'])
  5. xc = xc[:100]
  6. yc = list(realty_df['latitude'])
  7. yc = yc[:100]
  8. #print(xc)
  9. #for x in len(list(realty_df['longitude'])):
  10. #    if len(x) <=100:
  11. #        xc.append(realty_df)
  12.  
  13. import seaborn # импортируйте библиотеку seaborn
  14.  
  15. seaborn.barplot(x=xc, y=yc) # вывод графика на экран первых 100 значений
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement