Skip to content

Commit 5997627

Browse files
anitakarjaroslaw-osmanski
authored and
jaroslaw-osmanski
committed
Pass dataframe schema to python notebook context (#66)
#55
1 parent 99f3469 commit 5997627

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

remote_notebook/code/pyspark_kernel/kernel_init.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@ def dataframe():
7373
return move_to_local_sqlContext(DataFrame(jdf=java_data_frame, sql_ctx=sqlContext))
7474

7575
def move_to_local_sqlContext(df):
76-
return sqlContext.createDataFrame(df.rdd)
76+
return sqlContext.createDataFrame(df.rdd, df.schema)

0 commit comments

Comments
 (0)