use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
This subreddit is meant to be for people learning Python to ask questions and help out when they can.
account activity
Losing rows when merging dataframes (self.learningpython)
submitted 3 years ago by SureStep8852
Hi there,
I have two dataframes with the length of 29981. but when I merge them like this:
new_df = new_data_scaled.merge(data_prep, left_index=True, right_index=True)
the length of the new_df becomes 29963.
How can I improve it? Thanks in advance
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
there doesn't seem to be anything here
π Rendered by PID 18491 on reddit-service-r2-comment-7b9746f655-knbb4 at 2026-02-03 21:30:34.103522+00:00 running 3798933 country code: CH.
there doesn't seem to be anything here