Jul-12-2019, 06:26 AM
(Jul-11-2019, 05:12 AM)ahmedwaqas92 Wrote: I would most probably export them to a CSV file
Link appears to be dead, so generic example how to write specific columns to file:
>>> import pandas as pd >>> d = {'ham': [1, 2, 3], 'spam': ['a', 'b', 'c'], 'bacon': ['1a', '2b', '3c']} >>> df = pd.DataFrame(d) >>> df ham spam bacon 0 1 a 1a 1 2 b 2b 2 3 c 3c >>> df.to_csv('out.csv', columns=['ham', 'bacon'], index=False)The content of out.csv is:
Output:ham,bacon
1,1a
2,2b
3,3c
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.