0
set1 = df[(df['Complaint Type'] == 'Blocked Driveway')]
set1.reset_index(inplace = True)

set2 = df[(df[Çomplaint Type'] == 'Drinking')]
set2.reset_index(inplace = True)

ttest_ind(set1['Request_Closing_Time'], set2['Request_Closing_Time'])

when I run the ttest, I get an error.

TypeError: unfunc multiply cannot use operands with types dtype('<m8[ns]) and dtype('<m8[ns])
Strange
  • 1,460
  • 1
  • 7
  • 18

1 Answers1

0

Line starting with set2 is missing a single quote.

set2 = df[(df[‘Çomplaint Type'] == 'Drinking')]
Marichyasana
  • 2,966
  • 1
  • 19
  • 20