Skip to content

[BUG] ImportError: cannot import name 'json_normalize' from 'pandas.io.json' (/usr/local/lib/python3.11/dist-packages/pandas/io/json/__init__.py) #435

Description

@sugizo

Problem description

ImportError                               Traceback (most recent call last)
[<ipython-input-2-c45dcdaf0c07>](https://localhost:8080/#) in <cell line: 0>()
----> 1 from fastquant import get_crypto_data, get_stock_data, get_yahoo_data
      2 from matplotlib import pyplot as plt
      3 from fbprophet import Prophet

2 frames
[/usr/local/lib/python3.11/dist-packages/fastquant/disclosures/pse.py](https://localhost:8080/#) in <module>
     22 from tqdm import tqdm
     23 from bs4 import BeautifulSoup
---> 24 from pandas.io.json import json_normalize
     25 import matplotlib.pyplot as pl
     26 import matplotlib as mpl

ImportError: cannot import name 'json_normalize' from 'pandas.io.json' (/usr/local/lib/python3.11/dist-packages/pandas/io/json/__init__.py)

Example

from fastquant import get_crypto_data, get_stock_data, get_yahoo_data

Expected behavior

work smoothly

Environment

  • platform (e.g. Linux, OSX, Windows): google colab with ubuntu os
  • fastquant version (e.g. 0.1.3.17) : fastquant-0.1.8.1
  • installation method (e.g. pip, conda, source): pip install -U fastquant

best regards

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions