Answers for "python if dataframe has at least one row"

0

python if dataframe has at least one row

filtered_df = my_df.loc[my_df['ColA'] == myvalue] #calculated df

if len(filtered_df.index) > 0: # if the df has at least one row
	# your code here
Posted by: Guest on August-11-2021

Code answers related to "python if dataframe has at least one row"

Python Answers by Framework

Browse Popular Code Answers by Language