Python pandas strip header space

import pandas as pd

data = pd.read_csv('Data/JP225_H1.csv')
data.columns = [c.strip().lower().replace(' ','_') for c in data.columns]
data = data.set_index(data.local_time)

data = data[['open','high','low','close','volume']]

data = data.drop_duplicates(keep=False)

price = data.close.iloc[:9000]

Recommended Posts

Python pandas strip header space
My pandas (python)
python pandas notes
Installing pandas on python2.6
Python application: Pandas # 3: Dataframe
Python Basic --Pandas, Numpy-
Read csv with python pandas
Python application: Pandas Part 1: Basic
Python application: Pandas Part 2: Series
[Python] Convert list to Pandas [Pandas]
[Python] Change dtype with pandas
Install pandas 0.14 on python3.4 [on Mac]
python pandas study recent summary
Memorandum @ Python OR Seminar: Pandas
100 Pandas knocks for Python beginners
Data analysis using python pandas
The Power of Pandas: Python
Python hand play (Pandas / DataFrame beginning)
[Python] Operation memo of pandas DataFrame
Hit treasure data from Python Pandas
[Python] How to use Pandas Series
[Python] Join two tables with pandas
Python Pandas Data Preprocessing Personal Notes
[Introduction to Python] Let's use pandas
1. Statistics learned with Python 1-1. Basic statistics (Pandas)
[Introduction to Python] Let's use pandas
[Introduction to Python] Let's use pandas
Excel aggregation with Python pandas Part 1
[Python] Format when to_csv with pandas
Custom state space model in Python