Пікірлер
@rajivjain6165
@rajivjain6165 Күн бұрын
You are doing an amazing job. Bro
@harinadhbabu309
@harinadhbabu309 3 күн бұрын
Well explained, Thank you 🙏
@ssunitech6890
@ssunitech6890 3 күн бұрын
Thanks Keep sharing 😀
@Hope-xb5jv
@Hope-xb5jv 4 күн бұрын
from pyspark.sql.functions import * df1 = df.select('name',substring('phone',1,3).alias('stdnum'),substring('phone',5,8).alias('phonenum')) # when length is not fixed use below method #df1 = df.select('name',substring('phone', 1, 3).alias('stdnum'),substring('phone', 5, len(df.select('phone').first()[0]) - 4).alias('phonenum')) df1.display()
@shivaniverma3324
@shivaniverma3324 5 күн бұрын
data=[('Goa', ' ', 'AP'),('', 'AP', None), (None, ' ', 'Bglr')] columns=["city1", "city2", "city3"] df=spark.createDataFrame(data, columns) display(df)
@ssunitech6890
@ssunitech6890 4 күн бұрын
Thanks 🙏
@saurabh_9898
@saurabh_9898 5 күн бұрын
easy to understand👍
@ssunitech6890
@ssunitech6890 5 күн бұрын
Thanks
@datasculptor2895
@datasculptor2895 6 күн бұрын
input dataframe: from pyspark.sql.types import * data =[('IT','M') ,('IT','F') ,('IT','M') ,('IT','M') ,('HR','F') ,('HR','F') ,('HR','F') ,('HR','F') ,('HR','F') ,('Sales','M') ,('Sales','M') ,('Sales','F') ,('Sales','M') ,('Sales','M') ,('Sales','F')] schema =['DeptName','Gender'] df1=spark.createDataFrame(data,schema) display(df1)
@chetanmavale663
@chetanmavale663 9 күн бұрын
the idea of giving code in description is the best keep it up
@ssunitech6890
@ssunitech6890 4 күн бұрын
Thanks 🙏
@UdayVadla-n9m
@UdayVadla-n9m 9 күн бұрын
CREATE TABLE DistanceTable ( FromLocation VARCHAR(50), ToLocation VARCHAR(50), Distance INT ); INSERT INTO DistanceTable (FromLocation, ToLocation, Distance) VALUES ('Kanpur', 'Unnao', 18), ('Unnao', 'Kanpur', 18), ('Unnao', 'Lucknow', 60), ('Unnao', 'Noida', 450), ('Kanpur', 'Delhi', 460), ('Lucknow', 'Ayodhya', 130), ('Ayodhya', 'Lucknow', 130), ('Agra', 'Delhi', 220), ('Mathura', 'Delhi', 140), ('Delhi', 'Agra', 220);
@lkkota41
@lkkota41 9 күн бұрын
thank u for explaining,,,Can some please explain below Table1 Table2 inner join left join right full join cross join Sample1 52 Sample1 52 1 5 7 9 10 49 Sample2 53 Sample21 53 0 Sample1 48 Sample11 48 1 Sample3 48 Sample22 70 1 Sample4 52 Sample3 48 0 Sample5 54 Sample41 52 1 Sample5 20 Sample5 54 1 SQL query for full join is showing 11 records and I see NULL values.. NOT sure why Name age Sample1 52 Sample2 53 Sample1 48 Sample3 48 Sample4 52 Sample5 54 Sample5 20 NULL NULL NULL NULL NULL NULL NULL NULL
@thulasinagaraj6715
@thulasinagaraj6715 10 күн бұрын
Wow
@ssunitech6890
@ssunitech6890 4 күн бұрын
Thanks 🙏
@ervhart2776
@ervhart2776 13 күн бұрын
God bless you for this amazing playlist. Thank you very much.
@Kouravvines
@Kouravvines 16 күн бұрын
What if i want to define only 2 column not all the columns then what i can do?
@madhusudhanreddyt2838
@madhusudhanreddyt2838 18 күн бұрын
this is vert static code.. we can use the dynamic code like... Order MonthNoNew = IF(Orders[Order MonthNumber] > 6, Orders[Order MonthNumber] - 6, Orders[Order MonthNumber] + 6)
@barmalini
@barmalini 19 күн бұрын
Thank you sir, this is very useful. I did not quite understand the purpose of joining a dataframe with itself, this part: df1.alias('a').join(df1.alias('b') Could someone explain?
@rajakumaranr2998
@rajakumaranr2998 12 күн бұрын
To find the MgrName. if you see the Note: MgrId is EmpId of employee, In that case Mgrname would be EmpId of Empname. for eg : MgrId is 100 mean then MgrName would be "raj"
@sushmaahire1275
@sushmaahire1275 20 күн бұрын
Thank you
@ssunitech6890
@ssunitech6890 20 күн бұрын
Thanks 👍
@vaibhavdalvi8570
@vaibhavdalvi8570 20 күн бұрын
Awsm approach to teach
@ssunitech6890
@ssunitech6890 20 күн бұрын
Thanks 😊
@demodemo123-g6o
@demodemo123-g6o 22 күн бұрын
Hi bro good playlist kindly upload more challenging and solvable sql questions in this playlist. if you couldnot find time, plz upload it in a single video thanks for your efforts
@anuragawadhiya4003
@anuragawadhiya4003 23 күн бұрын
This should be Part-29
@ssunitech6890
@ssunitech6890 23 күн бұрын
Right 👍
@grim_rreaperr
@grim_rreaperr 24 күн бұрын
dbutils.widgets.text("nth_salary", "1") windowSpec = Window.partitionBy(F.col("Deptname")).orderBy(F.col("Salary").desc()) result_df = df.withColumn("salary_rnk", F.dense_rank().over(windowSpec)) nth_val= int(dbutils.widgets.get("nth_salary")) highest_rnk= result_df.agg(F.max("salary_rnk").alias("max_val")).collect()[0][0] if nth_val <= highest_rnk: result_df.filter(F.col("salary_rnk") == int(dbutils.widgets.get("nth_salary"))).drop("salary_rnk").display() else: print(f"This value is out of Bounds. We are expecting rank values less than or equal to {highest_rnk}.")
@pramodhgeorge4292
@pramodhgeorge4292 25 күн бұрын
very helpful. thanks a lot!
@ssunitech6890
@ssunitech6890 24 күн бұрын
Glad it helped ☺️
@ThaoNguyenThiPhuong-q3x
@ThaoNguyenThiPhuong-q3x 25 күн бұрын
can you teach how to do the page 2 of this dataset, i mean the dashboard at page 2 on your power bi
@divyasri5383
@divyasri5383 26 күн бұрын
We can do it without alter row right? Without alter row ,It will give the same output
@aqshatagade693
@aqshatagade693 26 күн бұрын
Can we use web activity instead of webhook? Also, do we need to use same account for teams and ADF in this scenario?
@meme_Overflow
@meme_Overflow 26 күн бұрын
bhai @oggysworls5205 ne jo queery puchi hai na wo batao mera bhi same issue hai
@USA_to_Asia_in_2024
@USA_to_Asia_in_2024 29 күн бұрын
Thank you for this video. Very helpful.
@ssunitech6890
@ssunitech6890 29 күн бұрын
Thanks 👍
@USA_to_Asia_in_2024
@USA_to_Asia_in_2024 Ай бұрын
Thank you.
@ssunitech6890
@ssunitech6890 29 күн бұрын
Thanks 👍
@adityakardile5062
@adityakardile5062 Ай бұрын
Can't we use append variable activity to get the name of the fine in for loop rather using another get metadata activity?
@PahadiaBhavan
@PahadiaBhavan Ай бұрын
Amazing playlist for Databricks beginners.
@ssunitech6890
@ssunitech6890 Ай бұрын
Thanks 🙏
@Themotivationstationpower
@Themotivationstationpower Ай бұрын
df1 = df.withColumn("City1", when(col("City1").isin("","null"), None).otherwise(col("City1"))) \ .withColumn("City2", when(col("City2").isin("","null"), None).otherwise(col("City2"))) \ .withColumn("City3", when(col("City3").isin("","null"), None).otherwise(col("City3"))) df1= df1.withColumn("NewColumn",coalesce(col("City1"),col("City2"),col("City3"))) df1.show()
@varunvengli1762
@varunvengli1762 Ай бұрын
First of all, nice video Second, should the timestamp be hard coded everytime? How to make the time stamp dynamic??
@harshareddy8264
@harshareddy8264 Ай бұрын
Why r we calling testing folder as archive folder?
@vijay.s-ll1yq
@vijay.s-ll1yq Ай бұрын
with cte as (Select * From Adm_Education union Select * From Adm_Sports union Select * From Adm_behaviour), cte_2 as (select Student_id,education_marks,case when education_marks <=70 then 'Fail' when education_marks >70 and education_marks<=80 then 'Pass' when education_marks >80 then 'Merit' end as marks_status from cte), cte_3 as (select Student_id,marks_status,count(2) as cnt from cte_2 group by Student_id,marks_status ), cte_4 as (select *,row_number() over(partition by student_id order by cnt desc) rn from cte_3) select Student_id,marks_status from cte_4 where rn =1
@sammail96
@sammail96 Ай бұрын
Dataset for above video: ItemId,VartId,ItemName,VartName,WhNo,Zone,Bin 1,1,Bajaj 20CT100 20Mudguard,Black,Wh001,Z001,B001 1,2,Bajaj 20CT100 20Mudguard,Red,Wh001,Z001,B002 1,3,Bajaj 20CT100 20Mudguard,Silver,Wh001,Z001,B003 2,1,Hero 20Super 20SPLD 20Mudguard,Black,Wh001,Z002,B001 2,2,Hero 20Super 20SPLD 20Mudguard,Red,Wh001,Z002,B002 2,3,Hero 20Super 20SPLD 20Mudguard,Blue,Wh001,Z002,B003 3,2,Hero 20HF 20DLX 20Mudguard,Red,Wh001,Z003,B002 3,1,Hero 20HF 20DLX 20Mudguard,Black,Wh001,Z003,B003 4,1,Hero 20HF 20DLX 20Mudguard,Black,Wh001,Z004,B001
@riyaz2727
@riyaz2727 Ай бұрын
Complwtly confused
@sammail96
@sammail96 Ай бұрын
Great video and nice explanation
@ssunitech6890
@ssunitech6890 Ай бұрын
Thanks 🙏
@headkickko
@headkickko Ай бұрын
Hi Bro, Is the playlist completed?
@toygar8699
@toygar8699 Ай бұрын
not works for even row numbers. it should take the average of the middle ones for even row numbers.
@azkarathore4355
@azkarathore4355 Ай бұрын
Can we get GPU A100 from gcp on free account
@munisekharbhupathi7183
@munisekharbhupathi7183 Ай бұрын
We have supplier's in legend and count of late pos in values. 90% late suppliers need to show with their name and remaining 10% should come in others category. How to do this.pls help.
@sammail96
@sammail96 Ай бұрын
Alternate approach is to use regexpreplace. replaces space more than one with ','. then apply split function. then iterate over array to get column values. split(regexReplace(Column_1,`[ ]{2,}`,','),',')[1], split(regexReplace(Column_1,`[ ]{2,}`,','),',')[2], so on...
@ssunitech6890
@ssunitech6890 Ай бұрын
Thanks for sharing 🙏
@sammail96
@sammail96 Ай бұрын
We can do this very easily with logic app
@ssunitech6890
@ssunitech6890 Ай бұрын
Yes
@anonymous20638
@anonymous20638 Ай бұрын
I am working in Persistent Systems since very long time. They are not showing any leniency to even very old employees. I was on bench for two months and I received a call from HR for termination, but I got saved luckily as I got assigned to the project on the same day. In past Persistent was known as very employee friendly company but now as they are growing they are becoming worse.
@ssunitech6890
@ssunitech6890 Ай бұрын
Say Thanks to God, and start searching for other opportunities. It's a really bad company.
@anonymous20638
@anonymous20638 Ай бұрын
@@ssunitech6890 During the great resignation boom period of 2021-22, the CEO was crying and requesting employees who had resigned to take back their resignation. He was giving big gyan like we didn't remove single employee during Covid, What goes up comes down, etc etc. At that time We were getting emails every week to refer candidates saying that they will loose projects if they don't get the candidates. And now see how they have changed colors!!! Sab Gyan baju main dal diya and now removing employees left-right and center. Forced resignations are still continuing.
@ElvinVarghese-vv1ro
@ElvinVarghese-vv1ro Ай бұрын
hey, when i try debit card , its getting rejected
@ssunitech6890
@ssunitech6890 Ай бұрын
Please enter correct information because it should work.
@iliashterev38
@iliashterev38 Ай бұрын
I think Q 5 should be wrong. UPDATE @TBL SET ID=NAME,NAME=ID Once you set the ID column to have value of the NAME then the value of ID itself should be lost. Which means both columns now should have the NAME value. Could you please help me (and other) on that. Thank you.
@ssunitech6890
@ssunitech6890 Ай бұрын
In same query, you can replace it.
@iliashterev38
@iliashterev38 Ай бұрын
@@ssunitech6890 I am sorry. I did not understand. Could you please try once more ?? I noticed one major error in my initial post. Instead of "of" I had written "if". Thank you.
@krishnasaikolla
@krishnasaikolla Ай бұрын
can you please help me on 'error message the requested operation requires elevation'
@VinodKumar-gz8bk
@VinodKumar-gz8bk Ай бұрын
Sir, make video of pyspark Architecture please?
@ssunitech6890
@ssunitech6890 Ай бұрын
Sure
@user-ht4bl8fm1t
@user-ht4bl8fm1t Ай бұрын
Its a good project and Nice idea.
@ssunitech6890
@ssunitech6890 Ай бұрын
Thanks 😊
@BalaMurugan-kb8ri
@BalaMurugan-kb8ri Ай бұрын
----> 1 df1=df.select(spark_partition_id().alias('partid')).groupBy('partid').count() NameError: name 'spark_partition_id' is not defined Sir I am getting above error
@MubbashirAthhar
@MubbashirAthhar Ай бұрын
hi, thanks for the video presented. I just want to know how we can reduce the PIE size (Circle). because when we make that Pie Visual some label gets hidden.
@SuneethaChenna-g9r
@SuneethaChenna-g9r Ай бұрын
Can you please share Excel file?