Data processing in Python

Python is an excellent tool for scanning and manipulating textual data.

Manipulations of tabular data



import pandas as pd
df = pd.read_csv("stock.csv", sep=",", quotechar='"')
df


Index it in different ways



mylist = df[(df["Symbol"] == "GOOG") & (df["Change"] > 0)]
mylist


Export



mylist.to_csv("mylist.csv", sep=",", header=None, index=None)