Python Forum
Why reindex converts integer to decimal?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why reindex converts integer to decimal?
#3
Thanks. The example in the help document has the same behavior but it does not seem to explain the reason. Does it has something to do with the tolerance optional parameter?

I installed Anaconda Navigator 1.9.7 on a Mac around Jan 24, 2002. I think pandas was installed automatically during the process. I typed "conda update pandas" in xterm and checked using pd.__version__ under ipython but it was like version 0.2. Then, I typed "Conda update --all" under xterm and checked again. I found that version 1.0.0 was installed. How come it did not get updated to 1.0.1?

Anyway, after updating, I re-run the code. The behavior remains the same with an additional error when I executed:
 frame.loc[['a', 'b', 'c', 'd'], states] 
in the last step.

KeyError: 'Passing list-likes to .loc or [] with any missing labels is no longer supported, see https://pandas.pydata.org/pandas-docs/st...x-listlike'
Reply


Messages In This Thread
RE: Why reindex converts integer to decimal? - by new_to_python - Feb-08-2020, 02:27 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  reindex() Truman 2 3,120 Jul-17-2020, 10:21 PM
Last Post: Truman
  reindex dataframe after sorting Clunk_Head 4 4,756 Jun-26-2019, 01:04 AM
Last Post: scidam

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020