Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8366501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:56:08+00:00 2026-06-09T12:56:08+00:00

This question is somehow a continuation of this one . I’ve been able to

  • 0

This question is somehow a continuation of this one. I’ve been able to correctly takes what I’m interested in a downloadable csv file as follow

import time
import urllib2
import csv
import sys
import pandas
response=urllib2.urlopen('http://www.euribor-ebf.eu/assets/modules/rateisblue/processed_files/hist_EURIBOR_2012.csv')
localFile = open('file.csv', 'w')
localFile.write(response.read())
localFile.close()
df2=pandas.io.parsers.read_csv('file.csv',index_col = 0, parse_dates = True, dayfirst = True)[:15].transpose()[:200] ## transpose in order to be compatible with pandas dataframe
df2 = df2.dropna() ## drop the values which are not-a-number
eur3m = df2['3m']

Now eur3m is a Series in Pandas and I would like to have information on a given time period. I know I can generate daterange with DateRange. What I would basically like to do is the have for example statics over 1 month period (let’s say mean and std in the period from 1 of July 2012 and 31 of July 2012). For some reasons, although I read the csv file trying to parse the date considering that these dates are in european format (DD/MM/YYYY) I’m not able to follow this example. Let’s say trying something like

day=eur3m.index
i = ((day >= '01/07/2012') & (day <= '31/07/2012')) 

but it does not work. Actually day is an array of string. I can’t understand if this is correct. Any help?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T12:56:10+00:00Added an answer on June 9, 2026 at 12:56 pm

    The dates are originally read in as the column names and pandas currently does not parse the column names into dates. For feature requests, please create a new issue on github: https://github.com/pydata/pandas/issues

    For now you can do some post-processing:

    eur3m.index = [datetime.datetime.strptime(x, '%d/%m/%Y') for x in eur3m.index]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

EDIT: woah ... somehow i replaced this question with another one i was asking,
This question is somehow similar to this one . I have a form in
This question has been asked more then once, but somehow I don't get things
This question somehow addresses the problem, but not from the side I'm looking for.
This question is somehow similar to the ones about how to make ARC and
I know this question might sound quite silly, but I somehow found myself stuck
This is somehow related to my question Why is ''>0 True in Python? In
This question is kind of a follow up to this question I asked a
This question is similar in concept to this one , except I see I
This question is a continuation of this thread : In short: To solve my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.