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

  • SEARCH
  • Home
  • 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 8994869
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:31:07+00:00 2026-06-15T23:31:07+00:00

The following lines give AttributeError: ‘module’ object has no attribute ‘bdate_range’ . I think

  • 0

The following lines give AttributeError: 'module' object has no attribute 'bdate_range'.

I think this might have something to do with a circular reference; but, I don’t know where.

import pandas as pd

times = pd.bdate_range(start=pd.datetime(2012,11,14,0,0,0),
                       end=pd.datetime(2012,11,17,0,0,0),
                       freq='10T')

This is the traceback:

AttributeError              Traceback (most recent call last)
<ipython-input-3-1eb62db1246d> in <module>()
       4 
       5 
 ----> 6 times = pd.bdate_range(start=pd.datetime(2012,11,14,0,0,0),end=pd.datetime(2012,11,17,0,0,0),
 freq='10T')
       7 filtered_times = [x for x in times if x.time() >= time(9,30) and x.time() <= time(16,20)]
       8 prices = randn(len(filtered_times))

AttributeError: 'module' object has no attribute 'bdate_range'
  • 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-15T23:31:08+00:00Added an answer on June 15, 2026 at 11:31 pm

    The bdate_range function was introduced in pandas version 0.8.0. So this ought to work fine if you upgrade to pandas >= 0.8.0 (and I would recommend using the latest stable release).

    Note: The pandas website allows you to search the docs by version number (select your versions’s docs on the right-hand side of the main page). In version 0.7.3 there are no search results for bdate_range.

    For the latest features and bug-fixes, keep your favourite Data Analysis library up-to-date!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Have many lines of text some lines has the following pattern /^aaa(B+)(.*)/ start with
Encounter following lines of code, but couldn't understand it. What is this (/ ...
I found the following lines in a makefile tutorial, but I have some problem
I have the following lines in my .zshrc source /etc/profile source $HOME/.profile My .profile
I have the following lines of code: if(std::binary_search(face_verts.begin(), face_verts.end(), left_right_vert[0]) && std::binary_search(face_verts.begin(), face_verts.end(), left_right_vert[1]))
I have the following lines to render TeX annotations in my matplotlib plot: import
I have the following app that has a textview and an edittext. When the
I have a file of 4.5MB (9,223,136 lines) with the following information: 0 0
I have a text file with the following characteristics: every line has at least
Possible Duplicate: Join lines based on pattern I have the following file: test one

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.