Re: Re: Untitled

From Jittery Shama, 7 Months ago, written in Plain Text, viewed 114 times. This paste is a reply to Re: Untitled from Sludgy Lechwe - go back
URL http://codebin.org/view/f4c81d8b/diff Embed
Viewing differences between Re: Untitled and Re: Re: Untitled
?????? 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())

Reply to "Re: Re: Untitled"

Here you can reply to the paste above