- Пример 1.
- def get_minutes_and_seconds(time_string):
- time_list = time_string.split(':')
- m = int(time_list[0])
- s = int(time_list[1])
- return m, s
- def check_song_duration(time_string):
- minutes, seconds = get_minutes_and_seconds(time_string)
- seconds = minutes * 60 + seconds
- return seconds < 210 #напишите ваш код здесь
- print(check_song_duration('4:35'))
- print(check_song_duration('2:10'))
- ________________________________________________________
- Пример 2.
- def default_drop(column):
- global data
- data = data[data[column]<data[column].quantile(0.995)]
- list_of_columns = ['price','area','height','weight','glass']
- for columns in list_of_columns:
- default_drop(columns)
- print(len(data))
- data = data.reset_index()
- print(data.info())
Re: Re: Untitled
From Jittery Shama, 4 Months ago, written in Plain Text, viewed 85 times.
This paste is a reply to Re: Untitled from Sludgy Lechwe
- view diff
URL http://codebin.org/view/f4c81d8b
Embed
Download Paste or View Raw
— Expand Paste to full width of browser