Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

convert dictionary to spark dataframe python

data = [{'student_id': 12, 'name': 'sravan', 'address': 'kakumanu'},
        {'student_id': 14, 'name': 'jyothika', 'address': 'tenali'},
        {'student_id': 11, 'name': 'deepika', 'address': 'repalle'}]
  
# creating a dataframe
dataframe = spark.createDataFrame(data)
Comment

PREVIOUS NEXT
Code Example
Python :: how to sharpen image in python using cv2 
Python :: what is r strip function in python 
Python :: python teilen ohne rest 
Python :: how to filter out all NaN values in pandas df 
Python :: How to add card in trello API using python 
Python :: exact distance 
Python :: how to install cuda in anaconda 
Python :: python conditional assignment 
Python :: fastest way to output text file in python + Cout 
Python :: sqlalchemy delete by id 
Python :: python set label colour 
Python :: flask run on ip and port 
Python :: standardscaler in machine learning 
Python :: tkinter text in canvas 
Python :: split dataset into train, test and validation sets 
Python :: train test validation sklearn 
Python :: Remove the First Character From the String in Python Using the Slicing 
Python :: python namedtuple 
Python :: How to find majority element in a sequence of values using Boyer-Moore vote algorithm? 
Python :: how to change web browser in python 
Python :: coronavirus program in python 
Python :: np range data 
Python :: remove all of same value python list 
Python :: one line input in python 
Python :: python how to get alphabet 
Python :: python create and show screenshot 
Python :: get all combinations from two lists python 
Python :: launch google chrome using python 
Python :: how to draw polygon in tkinter 
Python :: sklearn accuracy 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =