How do I generate a string of text based on data in a pandas dataframe?
for i in FLEDefendantsTbl:
doc.add_paragraph('At all times material hereto, ' + FLEDefendantsTbl['Name'] + ' was a Florida corporation that regularly transacted business in ' + CaseInfoTbl['County'] + ' County, Florida.')
I keep getting this error: ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
I've already filtered exactly the table of data I want. I just need this text to be generated for each row of the filtered data. How do I do this?
source https://stackoverflow.com/questions/74956063/how-to-generate-text-from-python-dataframe
Comments
Post a Comment