Hot answers tagged scripting
As the script works for some files and not for others, I suspect the problem is originated somewhere in the data (or handling of special cases in the data). TypeError suggest that you may have a mix of data types. I'm not sure how numpy would handle a mix like that. Have you tried to e.g. float the elevation to make sure they are all float numbers? ...
You want to set it to Table View. Feature Classes inherit from this interface. So setting the data type to Table View will allow you to see Feature Classes and standalone tables in the drop down.
Your code snippet is using a variable called path, for which we cannot see the value. If you insert a print statement as below, I suspect that you will find path has a value other than what you expect when the error is thrown. If it is set to something that you do expect then at least we will have narrowed down where to look for the error. print path ...
As of ArcGIS 10.2.1 for Desktop, you can use Alter Fields (Data Management) with an Advanced level license to: to rename fields or rename field aliases for any geodatabase table or feature class The same tool became available to Basic and Standard level licenses at ArcGIS 10.2.2 for Desktop.
Only top voted, non community-wiki answers of a minimum length are eligible