Skip to content

Commit 0ef5a48

Browse files
author
Sabbir Ahmed
authored
Merge pull request #798 from MoshiulRabbi/patch-1
added new pyspark command
2 parents 537720c + 20e289b commit 0ef5a48

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

data/pyspark.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@
4343
"definition": "Data ফিল্টার করা",
4444
"code": "df.filter(df['age']>24).show()"
4545
},
46+
{
47+
"definition": "Data lambda ফাংশন দিয়ে Sort করা",
48+
"code": "df.sortBy(lambda x: x[1]).collect()"
49+
},
4650
{
4751
"definition": "Duplicate Data ড্রপ করা",
4852
"code": "df.dropDuplicates()"
@@ -99,6 +103,10 @@
99103
"definition": "DataFrame কে RDD তে রূপান্তর করা",
100104
"code": "rdd1 = df.rdd"
101105
},
106+
{
107+
"definition": "Repartition করা",
108+
"code": "df.repartition(4)"
109+
},
102110
{
103111
"definition": "df এর কনটেন্ট Pandas Dataframe এ করে দেখা",
104112
"code": "df.toPandas()"
@@ -121,4 +129,4 @@
121129
}]
122130
}
123131
]
124-
}
132+
}

0 commit comments

Comments
 (0)