Skip to content
Advertisement

Tag: typeerror

TypeError when adding variable [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed 2 years ago. Improve this question

Trying to ignore Nan in csv file throws a typeerror

I’m loading a local csv file that contains data. I’m trying to find the smallest float in a row thats mixed of NaN and numbers. I have tried using the numpy function called np.nanmin, but it throws: Any suggestions to why nanmin might not work? A link to the entire csv file: http://www.sharecsv.com/s/5aea6381d1debf75723a45aacd40abf8/database.csv Here is a sample of my coun_weight:

Python SocketServer error upon connection

I am running a Python server using the socketserver module in Python 3.1. Every time I get a connection from the client (which succeeds client side), my server receives an error. Here is my code: And here is my error: The odd thing I noticed about the error is that the port it gives on the second line is different

Advertisement