Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas create empty dataframe

# Basic syntax:
import pandas as pd
empty_dataframe = pd.DataFrame()

# Create empty dataframe with column names
empty_dataframe = pd.DataFrame(columns=['your', 'column', 'names'])

# Create empty dataframe with row names
empty_dataframe = pd.DataFrame(index=['your', 'row', 'names'])
 
PREVIOUS NEXT
Tagged: #pandas #create #empty #dataframe
ADD COMMENT
Topic
Name
3+6 =