Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Selection of a subset for ticks labels

I have loaded a long serie of interest rate at Then I have loaded Pandas to manipulate thoses interest rates.

import pandas as pd
int_rates = pd.read_csv(r"C:\data\interetsmensuelsocde.csv")

A some column are without interest I have applied

ir3=int_rates.loc[23522 : 29300,'TIME':'Value']

Until now I have no problems. But now I want to plot my serie

import matplotlib.pyplot as plt
ir3.plot(x="TIME", y="Value")

the problem is that x gives too much information. How can I use only a subset of x for labelizing the ticks ?