Skip to content

[BUG] cannot import name 'json_normalize' from 'pandas.io.json'  #432

@ghabxph

Description

@ghabxph

Problem description

Just followed the snippet from the main page

Example

from fastquant import get_crypto_data
crypto = get_crypto_data("BTC/USDT", "2022-01-01", "2024-07-14")
crypto.head()

Expected behavior

I should see market data like this:

#             open    high     low     close    volume
# dt                                                          
# 2018-12-01  4041.27  4299.99  3963.01  4190.02  44840.073481
# 2018-12-02  4190.98  4312.99  4103.04  4161.01  38912.154790
# 2018-12-03  4160.55  4179.00  3827.00  3884.01  49094.369163
# 2018-12-04  3884.76  4085.00  3781.00  3951.64  48489.551613
# 2018-12-05  3950.98  3970.00  3745.00  3769.84  44004.799448

Actual behavior

image

Environment

  • platform OSX:
  • fastquant version: fastquant==0.1.8.1
  • installation method: pip

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