Giter VIP home page Giter VIP logo

Comments (3)

Dr-Irv avatar Dr-Irv commented on August 23, 2024 1

I've split this into 3 issues.

  • One for usecols on read_csv() (we should annotate that). That will be this one.
  • One for read_xml() #55
  • One for check_index_type on assert_frame_equal() #56

from pandas-stubs.

Dr-Irv avatar Dr-Irv commented on August 23, 2024

You're using the older version of pandas-stubs that was maintained separately. (1.2.0.62). Can you install the new version, which will have a prefix of 1.4 and see if you can replicate?

We currently don't have the argument usecols typed, so I think the newer version will make this particular error go away.

from pandas-stubs.

sofcalca avatar sofcalca commented on August 23, 2024

Thanks for your answer. I updated pandas-stubs to 1.4 and this issue went away. However, I now have the following errors :

error: Module has no attribute "read_xml"; maybe "read_html" or "read_excel"?
error: Unexpected keyword argument "check_index_type" for "assert_frame_equal"

with this code:

>>> import pandas as pd
>>> pd.read_xml('path/to/file', xpath=xpath, stylesheet=xsl)
>>> pd.testing.assert_frame_equal(pd.DataFrame(), pd.DataFrame(), check_index_type=False)

I updated pandas to make it compatible with pandas-stub 1.4, so my dependencies are now:

INSTALLED VERSIONS
------------------
commit           : 4bfe3d07b4858144c219b9346329027024102ab6
python           : 3.10.4.final.0
python-bits      : 64
OS               : Darwin
OS-release       : 21.5.0
Version          : Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:22 PDT 2022; root:xnu-8020.121.3~4/RELEASE_X86_64
machine          : x86_64
processor        : i386
byteorder        : little
LC_ALL           : None
LANG             : None
LOCALE           : fr_FR.UTF-8

pandas           : 1.4.2
numpy            : 1.23.0
pytz             : 2022.1
dateutil         : 2.8.2
pip              : 22.1.2
setuptools       : 62.6.0
Cython           : None
pytest           : 7.1.2
hypothesis       : None
sphinx           : None
blosc            : None
feather          : None
xlsxwriter       : None
lxml.etree       : None
html5lib         : None
pymysql          : None
psycopg2         : 2.9.3
jinja2           : 3.1.2
IPython          : 8.4.0
pandas_datareader: None
bs4              : 4.11.1
bottleneck       : None
brotli           : None
fastparquet      : None
fsspec           : None
gcsfs            : None
markupsafe       : 2.1.1
matplotlib       : 3.5.2
numba            : None
numexpr          : None
odfpy            : None
openpyxl         : None
pandas_gbq       : None
pyarrow          : None
pyreadstat       : None
pyxlsb           : None
s3fs             : None
scipy            : None
snappy           : None
sqlalchemy       : 1.4.39
tables           : None
tabulate         : None
xarray           : None
xlrd             : None
xlwt             : None
zstandard        : None

from pandas-stubs.

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.