Horje
check empty dataframe Code Example
empty dataframe
newDF = pd.DataFrame() #creates a new dataframe that's empty
newDF = newDF.append(oldDF, ignore_index = True) # ignoring index is optional
# try printing some data from newDF
print newDF.head() #again optional 
check empty dataframe
df.empty == True
how to check for empty dataframe
df_empty = pd.DataFrame({'A' : []})
df_empty.empty # True
dataframe pandas empty
>>> df_empty = pd.DataFrame({'A' : []})
>>> df_empty
Empty DataFrame
Columns: [A]
Index: []
>>> df_empty.empty
True




Python

Related
how to lock writing to a variable thread python Code Example how to lock writing to a variable thread python Code Example
draw circles matplotlib Code Example draw circles matplotlib Code Example
qpushbutton text alignment Code Example qpushbutton text alignment Code Example
find position of nan pandas Code Example find position of nan pandas Code Example
calculate root mean square error python Code Example calculate root mean square error python Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8