Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~25.3K People Reached
About Me

I'm trying to figure out Python. I am a GIS analysis and I need python to do some database management.

PC Specs
slow
Favorite Forums
Favorite Tags
Member Avatar for drew7py

Hi pythonians I am trying to sort a Numpy array by field, but I am having trouble setting up the fields. I think I may have the dtype wrong. I keep getting a TypeError: "expected a readable buffer object". Here is a sample of the infile: 1480 CL 9 2004 …

Member Avatar for drew7py
0
2K
Member Avatar for drew7py

I am looking for some pointers on how to format float numbers in a numpy array. This code selects lines from an array, and I want the output to look better so I can import into excel. infile looks like this: 1074 CL 006 2004 A8LGPUYE 10 TY 2 S0111P …

Member Avatar for drew7py
0
111
Member Avatar for drew7py

I am trying to create an array of integers from a list of strings to do some calculations, but all I can get is an array of strings or an error. Does numpy have any functions to do this? any help at all would be much appreciated. infile: 23 CL …

Member Avatar for Ene Uran
0
3K
Member Avatar for drew7py

I need to add a column to a list of strings and then print it back to a new text file without [] or "". I tried this below but it is not the result I wanted. infile looks like this: 23 CL 006 2004 DBA8ORPU 41 8Y S0111P 2 …

Member Avatar for Ene Uran
0
4K
Member Avatar for drew7py

I have this code that manipulates many list (which are a mix of numbers and words) and I need it to print to a text file in rows without brackets. here is the code: ingroup = open("C:\Python25\Drew\subgroup.txt", 'r') outgroup = file ("dID.txt", 'w') ct = 1 rcw = ingroup.readlines() cID=0 …

Member Avatar for drew7py
0
16K