Giter Site home page Giter Site logo

Comments (4)

albertandking avatar albertandking commented on June 15, 2024

Describe the bug migration_area_baidu show all areas except the area in param area,

To Reproduce

import akshare as ak

df = ak.migration_area_baidu(area="杭州市", indicator="move_out", date="20240401")
df1 = df[df["city_name"] == "杭州市"]
df2 = df[df["city_name"] == "嘉兴市"]
print("--df1--")
print(df1)
print("--df2--")
print(df2)

df1 is empty, but it should not be empty df2 is not empty, but it should be empty

Expected behavior migration_area_baidu return the data for param area only

Desktop (please complete the following information):

  • OS: Linux
  • Browser chromium
  • Version 1.13.69 (akshare)

接口正常

from akshare.

playgithub avatar playgithub commented on June 15, 2024

接口正常

ak.migration_area_baidu(area="杭州市", indicator="move_out", date="20240401")

应该返回杭州的数据,实际返回除了杭州以外所有其他城市的数据

from akshare.

albertandking avatar albertandking commented on June 15, 2024

接口正常

ak.migration_area_baidu(area="杭州市", indicator="move_out", date="20240401")

应该返回杭州的数据,实际返回除了杭州以外所有其他城市的数据

参照目标网站

from akshare.

playgithub avatar playgithub commented on June 15, 2024

目标网站:https://qianxi.baidu.com/?from=shoubai#city=0
选杭州,就只显示杭州的数据

from akshare.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.