Комментарии:
Thank you so much for the valueable information and boosting our skills
ОтветитьEasiest way or logic for the 2nd largest number in a list, please check -->
list1 = [2,7,3,5,9,11,6]
list1.sort()
list1.pop(-1)
print(list1[-1])
Remove duplicate elements from the list
x=[1,2,3,45,67,1,2,3,4,5,6,2,3,4,5,67]
z=[ ]
for i in x:
if i not in z:
z.append(i)
print(
can we get pdf for this seession
ОтветитьArmstrong Definition is wrong! We can only cube each digit if the given number has only 3 digits. For other number we need to use power of total number of digits.
This is the definition:
An Armstrong number is a number that is equal to the sum of its own digits each raised to the power of the number of digits.
so if your number is 3452 then we should check if (3**4)+(4**4)+(5**4)+(2**4)==3452. if yes, it is Armstrong otherwise not.
similarly for number 10 we should check like this (1**2)+(0**2)==10. this not armstrong since 1 not equal to 10.
fantastic is irritating
Ответить8. Advanced Users - Lambda function to add numbers in a list: ans = lambda x:sum(x)
Ответитьin the 2nd answer first line that keywords are reserved words which are used as identifiers and function names and more, i cannot understand that. The keyword cannot be used as an identifier, function, or variable name.
Ответитьits more towards data science and ml
ОтветитьThank you :)
ОтветитьHey,
I liked the video and especially that you talked about Liverpool!
Completed this in one sitting
Thank you sir
Thank you :)
ОтветитьFantastic video. Thanks.🙏🙏🙏🙏🙏🙏
ОтветитьThank u sir!
Ответитьfor question 55.
import pandas as pd
# Create a sample DataFrame
df = pd.DataFrame({'col1': ['A', 'B', 'C', 'A', 'D'], 'col2': [1, 2, 3, 4, 5], 'col3':['A','A','B','C','D']})
# Create an empty list to store the index of the rows to drop
to_drop = []
# Iterate through the rows of the DataFrame
for index, row in df.iterrows():
# Check if the value 'A' is present in any of the columns of the row
if 'A' in row.values:
# If it is, append the index to the list of rows to drop
to_drop.append(index)
print(df)
# Drop the rows using the list of indexes
df = df.drop(to_drop)
print(df)
Bro can u send these questions in pdf
ОтветитьThank you ! can u share the video slides ?
Ответить"fantastic guys" is the only Word I'm mostly listening while viewing the whole lecture.😂😂😂
ОтветитьBro can you please share the ppt which you have used to explain..,?
ОтветитьHow many time you say Fantastic.
ОтветитьReally thanks.
ОтветитьWhere is the notebook??
Ответитьbuddy can I get a pdf for this really helpful
ОтветитьThanks
ОтветитьI was watching this interview before an interview, I found your way of talking very irritating and a waste of time extending the video time.
ОтветитьHonestly, this video is a complete waste of time.
ОтветитьQuestion 5 of experienced users section, df.dropna() is not required. That is doing nothing for given dataset, and you are highlighting that part only.
ОтветитьThe title of this video should be " Python pandas questions for data science interview" not for developers. waster of time!
ОтветитьThank you very much it was very helpful for me
ОтветитьPlzz yrrr Hindi mai bnaya kro
Ответить❤❤l💗💗
ОтветитьGreat video and actually like Interview.
ОтветитьLegendary
ОтветитьHats off to you for making such a great video with practicals. I understood more than i had learnt because of practicals. I dont know how to tahank you. Hoping to attend interview next month . Thank you so much.
ОтветитьQuestion 5)
for i in range(1, 6):
print((str(i)+' ')*i)
Sir can you share the link for google collab notebook which you have shown in the video?
ОтветитьYe video agar hindi me rahta to abhi million view rahta , fantastic
Ответитьl = [ 1,1,1,2,2,2,3,3,3,3,4,5,5,5,6,6]
l = list(set(l))
to remove duplicate elements from list
Thank you Anirudh
ОтветитьThank you for sharing
ОтветитьIs it the correct time for a fresher to learn python from now! To get a job later so easily plz answer it bro???
Ответить