Re: Untitled

From Sludgy Lechwe, 1 Year ago, written in Plain Text, viewed 376 times. This paste is a reply to Untitled from Small Capybara - view diff
URL http://codebin.org/view/9d8e28f3 Embed
Download Paste or View Raw
  1. Пример 1.
  2. def get_minutes_and_seconds(time_string):
  3.     time_list = time_string.split(':')
  4.     m = int(time_list[0])
  5.     s = int(time_list[1])
  6.     return m, s
  7.  
  8.  
  9. def check_song_duration(time_string):
  10.     minutes, seconds = get_minutes_and_seconds(time_string)
  11.     seconds = minutes * 60 + seconds
  12.     return seconds < 210 #напишите ваш код здесь
  13.  
  14.  
  15. print(check_song_duration('4:35'))
  16. print(check_song_duration('2:10'))
  17.  
  18. ________________________________________________________
  19.  
  20.  
  21. Пример 2.
  22. def default_drop(column):
  23.     global data
  24.     data = data[data[column]<data[column].quantile(0.995)]
  25. list_of_columns = ['price','area','height','weight','glass']
  26. for columns in list_of_columns:    
  27.     default_drop(columns)
  28. print(len(data))
  29. data = data.reset_index()
  30. print(data.info())

Replies to Re: Untitled rss

Title Name Language When
Re: Re: Untitled Jittery Shama text 7 Months ago.

Reply to "Re: Untitled"

Here you can reply to the paste above