Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Data Conversion
%spark
val kq_game_logs = myquery966
kq_game_logs.createOrReplaceTempView("df_temp")
-------------------------------
%spark.pyspark
import matplotlib
matplotlib.use('Agg')
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from pyspark.sql import DataFrame
from datetime import datetime
dfp = DataFrame(z.get("df_temp"), sqlContext)
df = dfp.toPandas()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.