Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2022 10:11 AM
@SANJEEV BANDRU , You can persist the data frame in temp view by adding following in the python:
df.createOrReplaceTempView("employees_csv")then you can select:
select projectNo, collect_list(EmployeeNo)
from employees_csv
group by projectNo