Trying to find a job as entry level data analyst?? /u/Bassiette03 Python Education

Trying to find a job as entry level data analyst?? /u/Bassiette03 Python Education

Is learning data analysis with Python is good thing I’m trying to breakthrough and find job in entry level data analysis role but each time I got rejected as it says I don’t have enough experience or my skills are not that much everyone now knows excel sql and power pi some one of the hr team members said I should learn data analysis with python or SAS he said it will extinguish me Is he right or I will just waste my time with other tools and projects I made with the tools I know or should I learn something that is not so crowsded like data analysis What I should do and What do you think on how to get my first job AI or Data scienc with Python what do you think is good for me??

submitted by /u/Bassiette03
[link] [comments]

​r/learnpython Is learning data analysis with Python is good thing I’m trying to breakthrough and find job in entry level data analysis role but each time I got rejected as it says I don’t have enough experience or my skills are not that much everyone now knows excel sql and power pi some one of the hr team members said I should learn data analysis with python or SAS he said it will extinguish me Is he right or I will just waste my time with other tools and projects I made with the tools I know or should I learn something that is not so crowsded like data analysis What I should do and What do you think on how to get my first job AI or Data scienc with Python what do you think is good for me?? submitted by /u/Bassiette03 [link] [comments] 

Is learning data analysis with Python is good thing I’m trying to breakthrough and find job in entry level data analysis role but each time I got rejected as it says I don’t have enough experience or my skills are not that much everyone now knows excel sql and power pi some one of the hr team members said I should learn data analysis with python or SAS he said it will extinguish me Is he right or I will just waste my time with other tools and projects I made with the tools I know or should I learn something that is not so crowsded like data analysis What I should do and What do you think on how to get my first job AI or Data scienc with Python what do you think is good for me??

submitted by /u/Bassiette03
[link] [comments]  Is learning data analysis with Python is good thing I’m trying to breakthrough and find job in entry level data analysis role but each time I got rejected as it says I don’t have enough experience or my skills are not that much everyone now knows excel sql and power pi some one of the hr team members said I should learn data analysis with python or SAS he said it will extinguish me Is he right or I will just waste my time with other tools and projects I made with the tools I know or should I learn something that is not so crowsded like data analysis What I should do and What do you think on how to get my first job AI or Data scienc with Python what do you think is good for me?? submitted by /u/Bassiette03 [link] [comments]

Read more

Rate my code (I´m a beginner) /u/jontsii Python Education

Rate my code (I´m a beginner) /u/jontsii Python Education

So I´ve been coding for around 3 weeks now and made this project wich is a gambling game with a slot machine, number guessing, lottery and a jackpot(wich I made up). so what should I do better and what did I do good at . And sorry if I didn´t make a right format for the code It´s my first post here

# 🍋 🥑 ⭐ 🍇 🍊 🍌 🍎 import random import time wanna_play = True balance = int(input("how much do you want to play with")) icons = ["🍋", "🥑", "⭐", "🍇", "🍊", "🍌", "🍎"] game_decision = input("l for lottery, s for slot machine n for number guessing and j for jackpot") while wanna_play == True: #slot machine starts here if game_decision == "s" or game_decision == "S": print("Welcome to slot machine!") print(f"Your balance is {balance}") row_mark1 = random.choice(icons) row_mark2 = random.choice(icons) row_mark3 = random.choice(icons) row = [] row.append(row_mark1) row.append(row_mark2) row.append(row_mark3) print(*row) if row == "🍋": print("You won 75") balance += 75 elif row == "🥑": print("You won 75") balance += 75 elif row == "🍇": print("You won 75") balance += 75 elif row == "🍊": print("You won 75") balance += 75 elif row == "🍌": print("You won 75") balance += 75 elif row == "🍎": print("You won 75") balance += 75 elif row == "⭐": print("You won 250") balance += 250 elif row_mark1 == "⭐" and row_mark2 == "⭐": print("You won 100") balance += 100 elif row_mark2 == "⭐" and row_mark3 == "⭐": print("You won 100") balance += 100 elif row_mark1 == "⭐" and row_mark3 == "⭐": print("You won 100") balance += 100 elif row_mark1 == "⭐": print("You won 30") balance += 30 elif row_mark2 == "⭐": print("You won 30") balance += 50 elif row_mark3 == "⭐": print("You won 30") balance += 30 balance -= 10 print("q is to quit") game_decision = input("l for lottery, s for slot machine n for number guessing and j for jackpot") if game_decision == "Q" or game_decision == "q": print("Bye!") break #slot machine ends here #number guessing starts here elif game_decision == "n" or game_decision == "N": print("Welcome to number guessing") time.sleep(0.25) print("Your guess needs to be between 0 and 100") print(f"Your balance is {balance}") c_num = random.randint(0, 100) p_num = int(input("put your guess here: ")) if p_num == c_num: print("You won 15") balance += 15 elif p_num < 0 or p_num > 100: print("number invalid") else: print("You lost") print(f"Correct answer would have been {c_num}") balance -= 5 print("q is to quit") game_decision = input("l for lottery, s for slot machine n for number guessing and j for jackpot") if game_decision == "Q" or game_decision == "q": print("Bye!") break #number guessing ends here #lottery starts here elif game_decision == "l" or game_decision == "L": print(f"Your balance is {balance}") print("Welcome to lottery!") print("each one of your numbers in a row needs to be between 0 and 70") lottery_row_input = input("insert your numbers with spaces between them: ") lottery_row = list(map(int, lottery_row_input.split())) lottery_numbers_c = [random.randint(0, 70) for number in range(7)] print(*lottery_row) print() if lottery_row == lottery_numbers_c: print("You won 8 000 000") balance += 8000000 elif lottery_row is not lottery_numbers_c: print("You lost!") balance -= 20 print("q is to quit") game_decision = input("l for lottery, s for slot machine n for number guessing and j for jackpot") if game_decision == "Q" or game_decision == "q": print("Bye!") break #lottery ends here #jackpot starts here elif game_decision == "J" or game_decision == "j": print("Welcome to jackpot!") print(f"Your balance is {balance}") jackpot1 = int(input("first jackpot number from 0 to 100")) jackpot2 = int(input("second jackpot number from 0 to 100")) jackpot3 = int(input("third jackpot number from 0 to 500")) jackpot_row_c = [random.randint(0, 100) for number in range(2)] jackpot3_c = random.randint(0, 500) jackpot_row_c.append(jackpot3_c) jackpot_row = [] jackpot_row.append(jackpot1) jackpot_row.append(jackpot2) jackpot_row.append(jackpot3) if jackpot_row == jackpot_row_c: print("You won 160 000 000") balance += 160000000 elif jackpot_row is not jackpot_row_c: print("You lost!") balance -= 25 game_decision = input("l for lottery, s for slot machine n for number guessing and j for jackpot") if game_decision == "Q" or game_decision == "q": print("Bye!") break #jackpot ends here 

submitted by /u/jontsii
[link] [comments]

​r/learnpython So I´ve been coding for around 3 weeks now and made this project wich is a gambling game with a slot machine, number guessing, lottery and a jackpot(wich I made up). so what should I do better and what did I do good at . And sorry if I didn´t make a right format for the code It´s my first post here # 🍋 🥑 ⭐ 🍇 🍊 🍌 🍎 import random import time wanna_play = True balance = int(input(“how much do you want to play with”)) icons = [“🍋”, “🥑”, “⭐”, “🍇”, “🍊”, “🍌”, “🍎”] game_decision = input(“l for lottery, s for slot machine n for number guessing and j for jackpot”) while wanna_play == True: #slot machine starts here if game_decision == “s” or game_decision == “S”: print(“Welcome to slot machine!”) print(f”Your balance is {balance}”) row_mark1 = random.choice(icons) row_mark2 = random.choice(icons) row_mark3 = random.choice(icons) row = [] row.append(row_mark1) row.append(row_mark2) row.append(row_mark3) print(*row) if row == “🍋”: print(“You won 75”) balance += 75 elif row == “🥑”: print(“You won 75”) balance += 75 elif row == “🍇”: print(“You won 75”) balance += 75 elif row == “🍊”: print(“You won 75”) balance += 75 elif row == “🍌”: print(“You won 75”) balance += 75 elif row == “🍎”: print(“You won 75”) balance += 75 elif row == “⭐”: print(“You won 250”) balance += 250 elif row_mark1 == “⭐” and row_mark2 == “⭐”: print(“You won 100”) balance += 100 elif row_mark2 == “⭐” and row_mark3 == “⭐”: print(“You won 100”) balance += 100 elif row_mark1 == “⭐” and row_mark3 == “⭐”: print(“You won 100”) balance += 100 elif row_mark1 == “⭐”: print(“You won 30”) balance += 30 elif row_mark2 == “⭐”: print(“You won 30”) balance += 50 elif row_mark3 == “⭐”: print(“You won 30”) balance += 30 balance -= 10 print(“q is to quit”) game_decision = input(“l for lottery, s for slot machine n for number guessing and j for jackpot”) if game_decision == “Q” or game_decision == “q”: print(“Bye!”) break #slot machine ends here #number guessing starts here elif game_decision == “n” or game_decision == “N”: print(“Welcome to number guessing”) time.sleep(0.25) print(“Your guess needs to be between 0 and 100″) print(f”Your balance is {balance}”) c_num = random.randint(0, 100) p_num = int(input(“put your guess here: “)) if p_num == c_num: print(“You won 15”) balance += 15 elif p_num < 0 or p_num > 100: print(“number invalid”) else: print(“You lost”) print(f”Correct answer would have been {c_num}”) balance -= 5 print(“q is to quit”) game_decision = input(“l for lottery, s for slot machine n for number guessing and j for jackpot”) if game_decision == “Q” or game_decision == “q”: print(“Bye!”) break #number guessing ends here #lottery starts here elif game_decision == “l” or game_decision == “L”: print(f”Your balance is {balance}”) print(“Welcome to lottery!”) print(“each one of your numbers in a row needs to be between 0 and 70”) lottery_row_input = input(“insert your numbers with spaces between them: “) lottery_row = list(map(int, lottery_row_input.split())) lottery_numbers_c = [random.randint(0, 70) for number in range(7)] print(*lottery_row) print() if lottery_row == lottery_numbers_c: print(“You won 8 000 000”) balance += 8000000 elif lottery_row is not lottery_numbers_c: print(“You lost!”) balance -= 20 print(“q is to quit”) game_decision = input(“l for lottery, s for slot machine n for number guessing and j for jackpot”) if game_decision == “Q” or game_decision == “q”: print(“Bye!”) break #lottery ends here #jackpot starts here elif game_decision == “J” or game_decision == “j”: print(“Welcome to jackpot!”) print(f”Your balance is {balance}”) jackpot1 = int(input(“first jackpot number from 0 to 100”)) jackpot2 = int(input(“second jackpot number from 0 to 100”)) jackpot3 = int(input(“third jackpot number from 0 to 500”)) jackpot_row_c = [random.randint(0, 100) for number in range(2)] jackpot3_c = random.randint(0, 500) jackpot_row_c.append(jackpot3_c) jackpot_row = [] jackpot_row.append(jackpot1) jackpot_row.append(jackpot2) jackpot_row.append(jackpot3) if jackpot_row == jackpot_row_c: print(“You won 160 000 000”) balance += 160000000 elif jackpot_row is not jackpot_row_c: print(“You lost!”) balance -= 25 game_decision = input(“l for lottery, s for slot machine n for number guessing and j for jackpot”) if game_decision == “Q” or game_decision == “q”: print(“Bye!”) break #jackpot ends here submitted by /u/jontsii [link] [comments] 

So I´ve been coding for around 3 weeks now and made this project wich is a gambling game with a slot machine, number guessing, lottery and a jackpot(wich I made up). so what should I do better and what did I do good at . And sorry if I didn´t make a right format for the code It´s my first post here

# 🍋 🥑 ⭐ 🍇 🍊 🍌 🍎 import random import time wanna_play = True balance = int(input("how much do you want to play with")) icons = ["🍋", "🥑", "⭐", "🍇", "🍊", "🍌", "🍎"] game_decision = input("l for lottery, s for slot machine n for number guessing and j for jackpot") while wanna_play == True: #slot machine starts here if game_decision == "s" or game_decision == "S": print("Welcome to slot machine!") print(f"Your balance is {balance}") row_mark1 = random.choice(icons) row_mark2 = random.choice(icons) row_mark3 = random.choice(icons) row = [] row.append(row_mark1) row.append(row_mark2) row.append(row_mark3) print(*row) if row == "🍋": print("You won 75") balance += 75 elif row == "🥑": print("You won 75") balance += 75 elif row == "🍇": print("You won 75") balance += 75 elif row == "🍊": print("You won 75") balance += 75 elif row == "🍌": print("You won 75") balance += 75 elif row == "🍎": print("You won 75") balance += 75 elif row == "⭐": print("You won 250") balance += 250 elif row_mark1 == "⭐" and row_mark2 == "⭐": print("You won 100") balance += 100 elif row_mark2 == "⭐" and row_mark3 == "⭐": print("You won 100") balance += 100 elif row_mark1 == "⭐" and row_mark3 == "⭐": print("You won 100") balance += 100 elif row_mark1 == "⭐": print("You won 30") balance += 30 elif row_mark2 == "⭐": print("You won 30") balance += 50 elif row_mark3 == "⭐": print("You won 30") balance += 30 balance -= 10 print("q is to quit") game_decision = input("l for lottery, s for slot machine n for number guessing and j for jackpot") if game_decision == "Q" or game_decision == "q": print("Bye!") break #slot machine ends here #number guessing starts here elif game_decision == "n" or game_decision == "N": print("Welcome to number guessing") time.sleep(0.25) print("Your guess needs to be between 0 and 100") print(f"Your balance is {balance}") c_num = random.randint(0, 100) p_num = int(input("put your guess here: ")) if p_num == c_num: print("You won 15") balance += 15 elif p_num < 0 or p_num > 100: print("number invalid") else: print("You lost") print(f"Correct answer would have been {c_num}") balance -= 5 print("q is to quit") game_decision = input("l for lottery, s for slot machine n for number guessing and j for jackpot") if game_decision == "Q" or game_decision == "q": print("Bye!") break #number guessing ends here #lottery starts here elif game_decision == "l" or game_decision == "L": print(f"Your balance is {balance}") print("Welcome to lottery!") print("each one of your numbers in a row needs to be between 0 and 70") lottery_row_input = input("insert your numbers with spaces between them: ") lottery_row = list(map(int, lottery_row_input.split())) lottery_numbers_c = [random.randint(0, 70) for number in range(7)] print(*lottery_row) print() if lottery_row == lottery_numbers_c: print("You won 8 000 000") balance += 8000000 elif lottery_row is not lottery_numbers_c: print("You lost!") balance -= 20 print("q is to quit") game_decision = input("l for lottery, s for slot machine n for number guessing and j for jackpot") if game_decision == "Q" or game_decision == "q": print("Bye!") break #lottery ends here #jackpot starts here elif game_decision == "J" or game_decision == "j": print("Welcome to jackpot!") print(f"Your balance is {balance}") jackpot1 = int(input("first jackpot number from 0 to 100")) jackpot2 = int(input("second jackpot number from 0 to 100")) jackpot3 = int(input("third jackpot number from 0 to 500")) jackpot_row_c = [random.randint(0, 100) for number in range(2)] jackpot3_c = random.randint(0, 500) jackpot_row_c.append(jackpot3_c) jackpot_row = [] jackpot_row.append(jackpot1) jackpot_row.append(jackpot2) jackpot_row.append(jackpot3) if jackpot_row == jackpot_row_c: print("You won 160 000 000") balance += 160000000 elif jackpot_row is not jackpot_row_c: print("You lost!") balance -= 25 game_decision = input("l for lottery, s for slot machine n for number guessing and j for jackpot") if game_decision == "Q" or game_decision == "q": print("Bye!") break #jackpot ends here 

submitted by /u/jontsii
[link] [comments]  So I´ve been coding for around 3 weeks now and made this project wich is a gambling game with a slot machine, number guessing, lottery and a jackpot(wich I made up). so what should I do better and what did I do good at . And sorry if I didn´t make a right format for the code It´s my first post here # 🍋 🥑 ⭐ 🍇 🍊 🍌 🍎 import random import time wanna_play = True balance = int(input(“how much do you want to play with”)) icons = [“🍋”, “🥑”, “⭐”, “🍇”, “🍊”, “🍌”, “🍎”] game_decision = input(“l for lottery, s for slot machine n for number guessing and j for jackpot”) while wanna_play == True: #slot machine starts here if game_decision == “s” or game_decision == “S”: print(“Welcome to slot machine!”) print(f”Your balance is {balance}”) row_mark1 = random.choice(icons) row_mark2 = random.choice(icons) row_mark3 = random.choice(icons) row = [] row.append(row_mark1) row.append(row_mark2) row.append(row_mark3) print(*row) if row == “🍋”: print(“You won 75”) balance += 75 elif row == “🥑”: print(“You won 75”) balance += 75 elif row == “🍇”: print(“You won 75”) balance += 75 elif row == “🍊”: print(“You won 75”) balance += 75 elif row == “🍌”: print(“You won 75”) balance += 75 elif row == “🍎”: print(“You won 75”) balance += 75 elif row == “⭐”: print(“You won 250”) balance += 250 elif row_mark1 == “⭐” and row_mark2 == “⭐”: print(“You won 100”) balance += 100 elif row_mark2 == “⭐” and row_mark3 == “⭐”: print(“You won 100”) balance += 100 elif row_mark1 == “⭐” and row_mark3 == “⭐”: print(“You won 100”) balance += 100 elif row_mark1 == “⭐”: print(“You won 30”) balance += 30 elif row_mark2 == “⭐”: print(“You won 30”) balance += 50 elif row_mark3 == “⭐”: print(“You won 30”) balance += 30 balance -= 10 print(“q is to quit”) game_decision = input(“l for lottery, s for slot machine n for number guessing and j for jackpot”) if game_decision == “Q” or game_decision == “q”: print(“Bye!”) break #slot machine ends here #number guessing starts here elif game_decision == “n” or game_decision == “N”: print(“Welcome to number guessing”) time.sleep(0.25) print(“Your guess needs to be between 0 and 100″) print(f”Your balance is {balance}”) c_num = random.randint(0, 100) p_num = int(input(“put your guess here: “)) if p_num == c_num: print(“You won 15”) balance += 15 elif p_num < 0 or p_num > 100: print(“number invalid”) else: print(“You lost”) print(f”Correct answer would have been {c_num}”) balance -= 5 print(“q is to quit”) game_decision = input(“l for lottery, s for slot machine n for number guessing and j for jackpot”) if game_decision == “Q” or game_decision == “q”: print(“Bye!”) break #number guessing ends here #lottery starts here elif game_decision == “l” or game_decision == “L”: print(f”Your balance is {balance}”) print(“Welcome to lottery!”) print(“each one of your numbers in a row needs to be between 0 and 70”) lottery_row_input = input(“insert your numbers with spaces between them: “) lottery_row = list(map(int, lottery_row_input.split())) lottery_numbers_c = [random.randint(0, 70) for number in range(7)] print(*lottery_row) print() if lottery_row == lottery_numbers_c: print(“You won 8 000 000”) balance += 8000000 elif lottery_row is not lottery_numbers_c: print(“You lost!”) balance -= 20 print(“q is to quit”) game_decision = input(“l for lottery, s for slot machine n for number guessing and j for jackpot”) if game_decision == “Q” or game_decision == “q”: print(“Bye!”) break #lottery ends here #jackpot starts here elif game_decision == “J” or game_decision == “j”: print(“Welcome to jackpot!”) print(f”Your balance is {balance}”) jackpot1 = int(input(“first jackpot number from 0 to 100”)) jackpot2 = int(input(“second jackpot number from 0 to 100”)) jackpot3 = int(input(“third jackpot number from 0 to 500”)) jackpot_row_c = [random.randint(0, 100) for number in range(2)] jackpot3_c = random.randint(0, 500) jackpot_row_c.append(jackpot3_c) jackpot_row = [] jackpot_row.append(jackpot1) jackpot_row.append(jackpot2) jackpot_row.append(jackpot3) if jackpot_row == jackpot_row_c: print(“You won 160 000 000”) balance += 160000000 elif jackpot_row is not jackpot_row_c: print(“You lost!”) balance -= 25 game_decision = input(“l for lottery, s for slot machine n for number guessing and j for jackpot”) if game_decision == “Q” or game_decision == “q”: print(“Bye!”) break #jackpot ends here submitted by /u/jontsii [link] [comments]

Read more

Looking for ideas for a computer science project. (More details below) /u/Georgeharrisonpizza Python Education

Looking for ideas for a computer science project. (More details below) /u/Georgeharrisonpizza Python Education

I have to make a computer science project in python using lists, tuples, dictionaries and modules like math, random etc. Any ideas would be appreciated.

submitted by /u/Georgeharrisonpizza
[link] [comments]

​r/learnpython I have to make a computer science project in python using lists, tuples, dictionaries and modules like math, random etc. Any ideas would be appreciated. submitted by /u/Georgeharrisonpizza [link] [comments] 

I have to make a computer science project in python using lists, tuples, dictionaries and modules like math, random etc. Any ideas would be appreciated.

submitted by /u/Georgeharrisonpizza
[link] [comments]  I have to make a computer science project in python using lists, tuples, dictionaries and modules like math, random etc. Any ideas would be appreciated. submitted by /u/Georgeharrisonpizza [link] [comments]

Read more

A consiting way to get to clik on links on a dropdown menu with selenium? /u/randomusername11222 Python Education

A consiting way to get to clik on links on a dropdown menu with selenium? /u/randomusername11222 Python Education

for example on websites. where you like scroll, and click what you like
https://youtube.com/shorts/NyoWyB9wAsI

How could I automated such action consistently? By using xy locations, and the wheel mouse, I can more or less click in right, but its prone to fail, when stuff isnt exactly at the same location…

amazon, is just an example, I’d want some suggestion as a general note…

submitted by /u/randomusername11222
[link] [comments]

​r/learnpython for example on websites. where you like scroll, and click what you like https://youtube.com/shorts/NyoWyB9wAsI How could I automated such action consistently? By using xy locations, and the wheel mouse, I can more or less click in right, but its prone to fail, when stuff isnt exactly at the same location… amazon, is just an example, I’d want some suggestion as a general note… submitted by /u/randomusername11222 [link] [comments] 

for example on websites. where you like scroll, and click what you like
https://youtube.com/shorts/NyoWyB9wAsI

How could I automated such action consistently? By using xy locations, and the wheel mouse, I can more or less click in right, but its prone to fail, when stuff isnt exactly at the same location…

amazon, is just an example, I’d want some suggestion as a general note…

submitted by /u/randomusername11222
[link] [comments]  for example on websites. where you like scroll, and click what you like https://youtube.com/shorts/NyoWyB9wAsI How could I automated such action consistently? By using xy locations, and the wheel mouse, I can more or less click in right, but its prone to fail, when stuff isnt exactly at the same location… amazon, is just an example, I’d want some suggestion as a general note… submitted by /u/randomusername11222 [link] [comments]

Read more

Find the depth of my vibrato sound while singing a sustained note C4 /u/Keypass1236 Python Education

Find the depth of my vibrato sound while singing a sustained note C4 /u/Keypass1236 Python Education

As part of my school project, I recorded a wav file and am trying to analyze the file to get the amplitude , min frequency, standard deviation etc . I did the below in Python but the numbers are off

I get the below. The SD is more than the max. Also, human voice cant be this high frequency ( no background) . Any suggestions ?

Maximum Frequency: 263.0 Hz

Maximum Amplitude: 944.6695556640625

Median Frequency: 5512.454545454546 Hz

Mean Frequency: 5512.454545454545 Hz

Standard Deviation of Frequencies: 3182.643358799615 Hz

_____________________________________________________________________

import librosa

import numpy as np

# Specify the path to the audio file

audio_file = ‘clip.wav’

# Load the audio file

y, sr = librosa.load(audio_file)

# Compute the Short-Time Fourier Transform (STFT)

D = np.abs(librosa.stft(y))

# Convert amplitude to decibels

DB = librosa.amplitude_to_db(D, ref=np.max)

# Get the frequency and time bins

frequencies = librosa.fft_frequencies(sr=sr)

times = librosa.frames_to_time(np.arange(D.shape[1]), sr=sr)

# Calculate the maximum frequency and amplitude

max_amp_index = np.unravel_index(np.argmax(DB, axis=None), DB.shape)

max_freq = frequencies[max_amp_index[0]]

max_amplitude = DB[max_amp_index]

max_time = times[max_amp_index[1]]

# Calculate the median frequency

median_freq = np.median(frequencies)

# Calculate the mean frequency

mean_freq = np.mean(frequencies)

# Calculate the standard deviation of frequencies

std_freq = np.std(frequencies)

print(f’Maximum Frequency: {max_freq} Hz’)

print(f’Maximum Amplitude: {max_amplitude} dB’)

print(f’Time at Maximum Amplitude: {max_time} seconds’)

print(f’Median Frequency: {median_freq} Hz’)

print(f’Mean Frequency: {mean_freq} Hz’)

print(f’Standard Deviation of Frequencies: {std_freq} Hz’)

submitted by /u/Keypass1236
[link] [comments]

​r/learnpython As part of my school project, I recorded a wav file and am trying to analyze the file to get the amplitude , min frequency, standard deviation etc . I did the below in Python but the numbers are off I get the below. The SD is more than the max. Also, human voice cant be this high frequency ( no background) . Any suggestions ? Maximum Frequency: 263.0 Hz Maximum Amplitude: 944.6695556640625 Median Frequency: 5512.454545454546 Hz Mean Frequency: 5512.454545454545 Hz Standard Deviation of Frequencies: 3182.643358799615 Hz _____________________________________________________________________ import librosa import numpy as np # Specify the path to the audio file audio_file = ‘clip.wav’ # Load the audio file y, sr = librosa.load(audio_file) # Compute the Short-Time Fourier Transform (STFT) D = np.abs(librosa.stft(y)) # Convert amplitude to decibels DB = librosa.amplitude_to_db(D, ref=np.max) # Get the frequency and time bins frequencies = librosa.fft_frequencies(sr=sr) times = librosa.frames_to_time(np.arange(D.shape[1]), sr=sr) # Calculate the maximum frequency and amplitude max_amp_index = np.unravel_index(np.argmax(DB, axis=None), DB.shape) max_freq = frequencies[max_amp_index[0]] max_amplitude = DB[max_amp_index] max_time = times[max_amp_index[1]] # Calculate the median frequency median_freq = np.median(frequencies) # Calculate the mean frequency mean_freq = np.mean(frequencies) # Calculate the standard deviation of frequencies std_freq = np.std(frequencies) print(f’Maximum Frequency: {max_freq} Hz’) print(f’Maximum Amplitude: {max_amplitude} dB’) print(f’Time at Maximum Amplitude: {max_time} seconds’) print(f’Median Frequency: {median_freq} Hz’) print(f’Mean Frequency: {mean_freq} Hz’) print(f’Standard Deviation of Frequencies: {std_freq} Hz’) submitted by /u/Keypass1236 [link] [comments] 

As part of my school project, I recorded a wav file and am trying to analyze the file to get the amplitude , min frequency, standard deviation etc . I did the below in Python but the numbers are off

I get the below. The SD is more than the max. Also, human voice cant be this high frequency ( no background) . Any suggestions ?

Maximum Frequency: 263.0 Hz

Maximum Amplitude: 944.6695556640625

Median Frequency: 5512.454545454546 Hz

Mean Frequency: 5512.454545454545 Hz

Standard Deviation of Frequencies: 3182.643358799615 Hz

_____________________________________________________________________

import librosa

import numpy as np

# Specify the path to the audio file

audio_file = ‘clip.wav’

# Load the audio file

y, sr = librosa.load(audio_file)

# Compute the Short-Time Fourier Transform (STFT)

D = np.abs(librosa.stft(y))

# Convert amplitude to decibels

DB = librosa.amplitude_to_db(D, ref=np.max)

# Get the frequency and time bins

frequencies = librosa.fft_frequencies(sr=sr)

times = librosa.frames_to_time(np.arange(D.shape[1]), sr=sr)

# Calculate the maximum frequency and amplitude

max_amp_index = np.unravel_index(np.argmax(DB, axis=None), DB.shape)

max_freq = frequencies[max_amp_index[0]]

max_amplitude = DB[max_amp_index]

max_time = times[max_amp_index[1]]

# Calculate the median frequency

median_freq = np.median(frequencies)

# Calculate the mean frequency

mean_freq = np.mean(frequencies)

# Calculate the standard deviation of frequencies

std_freq = np.std(frequencies)

print(f’Maximum Frequency: {max_freq} Hz’)

print(f’Maximum Amplitude: {max_amplitude} dB’)

print(f’Time at Maximum Amplitude: {max_time} seconds’)

print(f’Median Frequency: {median_freq} Hz’)

print(f’Mean Frequency: {mean_freq} Hz’)

print(f’Standard Deviation of Frequencies: {std_freq} Hz’)

submitted by /u/Keypass1236
[link] [comments]  As part of my school project, I recorded a wav file and am trying to analyze the file to get the amplitude , min frequency, standard deviation etc . I did the below in Python but the numbers are off I get the below. The SD is more than the max. Also, human voice cant be this high frequency ( no background) . Any suggestions ? Maximum Frequency: 263.0 Hz Maximum Amplitude: 944.6695556640625 Median Frequency: 5512.454545454546 Hz Mean Frequency: 5512.454545454545 Hz Standard Deviation of Frequencies: 3182.643358799615 Hz _____________________________________________________________________ import librosa import numpy as np # Specify the path to the audio file audio_file = ‘clip.wav’ # Load the audio file y, sr = librosa.load(audio_file) # Compute the Short-Time Fourier Transform (STFT) D = np.abs(librosa.stft(y)) # Convert amplitude to decibels DB = librosa.amplitude_to_db(D, ref=np.max) # Get the frequency and time bins frequencies = librosa.fft_frequencies(sr=sr) times = librosa.frames_to_time(np.arange(D.shape[1]), sr=sr) # Calculate the maximum frequency and amplitude max_amp_index = np.unravel_index(np.argmax(DB, axis=None), DB.shape) max_freq = frequencies[max_amp_index[0]] max_amplitude = DB[max_amp_index] max_time = times[max_amp_index[1]] # Calculate the median frequency median_freq = np.median(frequencies) # Calculate the mean frequency mean_freq = np.mean(frequencies) # Calculate the standard deviation of frequencies std_freq = np.std(frequencies) print(f’Maximum Frequency: {max_freq} Hz’) print(f’Maximum Amplitude: {max_amplitude} dB’) print(f’Time at Maximum Amplitude: {max_time} seconds’) print(f’Median Frequency: {median_freq} Hz’) print(f’Mean Frequency: {mean_freq} Hz’) print(f’Standard Deviation of Frequencies: {std_freq} Hz’) submitted by /u/Keypass1236 [link] [comments]

Read more

YAML roundtrip parsing /u/eztab Python Education

YAML roundtrip parsing /u/eztab Python Education

Hi everyone,

I’m wondering if anyone knows a way to read in YAML files, read and change some options, and then safe them back, preserving comments, indentation and block styles?

I know YAML is kind of known for not having any parsers that support all of the (sometimes obscure) features. There seem to be quite a few libraries with various states of being maintained, but I haven’t seen any that are somewhat roundtrip capable, since the convert the loaded object to a dict.

I also need that functionality for TOML, where I am currently planning to use TOML Kit. So any accounts of experiences with that are also welcome.

submitted by /u/eztab
[link] [comments]

​r/learnpython Hi everyone, I’m wondering if anyone knows a way to read in YAML files, read and change some options, and then safe them back, preserving comments, indentation and block styles? I know YAML is kind of known for not having any parsers that support all of the (sometimes obscure) features. There seem to be quite a few libraries with various states of being maintained, but I haven’t seen any that are somewhat roundtrip capable, since the convert the loaded object to a dict. I also need that functionality for TOML, where I am currently planning to use TOML Kit. So any accounts of experiences with that are also welcome. submitted by /u/eztab [link] [comments] 

Hi everyone,

I’m wondering if anyone knows a way to read in YAML files, read and change some options, and then safe them back, preserving comments, indentation and block styles?

I know YAML is kind of known for not having any parsers that support all of the (sometimes obscure) features. There seem to be quite a few libraries with various states of being maintained, but I haven’t seen any that are somewhat roundtrip capable, since the convert the loaded object to a dict.

I also need that functionality for TOML, where I am currently planning to use TOML Kit. So any accounts of experiences with that are also welcome.

submitted by /u/eztab
[link] [comments]  Hi everyone, I’m wondering if anyone knows a way to read in YAML files, read and change some options, and then safe them back, preserving comments, indentation and block styles? I know YAML is kind of known for not having any parsers that support all of the (sometimes obscure) features. There seem to be quite a few libraries with various states of being maintained, but I haven’t seen any that are somewhat roundtrip capable, since the convert the loaded object to a dict. I also need that functionality for TOML, where I am currently planning to use TOML Kit. So any accounts of experiences with that are also welcome. submitted by /u/eztab [link] [comments]

Read more