Subscribe to DSC Newsletter
Neeraj Sharma
  • Female
  • Bangalore,Karnataka
  • India
Share on Facebook
Share

Neeraj Sharma's Discussions

Merge row data

Started this discussion. Last reply by steve miller Feb 11. 5 Replies

I have four columns in my data set like below:A       B      C       D0      NA    NA    NA0      NA    NA    NANA    1      NA    NANA    0      NA    NANA   NA     0      NANA   NA     1      NANA …Continue

Tags: column, values, Merge, Python, mining

Gifts Received

Gift

Neeraj Sharma has not received any gifts yet

Give a Gift

 

Neeraj Sharma's Page

Latest Activity

Paulo César liked Neeraj Sharma's discussion Merge row data
Feb 14
Tim Matteson liked Neeraj Sharma's discussion Merge row data
Feb 13
steve miller replied to Neeraj Sharma's discussion Merge row data
"nice answer. you wanna use array operations. numpy's an elegant and efficient library."
Feb 11
Kornel Olszewski replied to Neeraj Sharma's discussion Merge row data
"Hi, I believe a simple solution would be to use foreach loop construct. Let us declare the dataset: t1 = data_frame(                          A=c( rep(0,2),rep(NA,6) )                         ,B=c( rep(NA,2),1,0,rep(NA,4) )                       …"
Feb 11
steve miller replied to Neeraj Sharma's discussion Merge row data
"actually, for this exercise, dplyr isn't necessary."
Feb 10
steve miller replied to Neeraj Sharma's discussion Merge row data
"I'm a big proponent of using R packages data.table and dplyr (tidyverse) in collaboration: library(data.table) library(dplyr) dt <-…"
Feb 10
John Swanson replied to Neeraj Sharma's discussion Merge row data
"I think the easiest and quickest way would be to use the Numpy package for Python.  It performs operations on arrays very quickly. You can enter the data into a Numpy array, or use the numpy.asarray() to put your Python list into an array: x…"
Feb 5
Neeraj Sharma's discussion was featured

Merge row data

I have four columns in my data set like below:A       B      C       D0      NA    NA    NA0      NA    NA    NANA    1      NA    NANA    0      NA    NANA   NA     0      NANA   NA     1      NANA   NA    NA     0NA   NA    NA     1I want to merge all columns in one column and want the output as below:A00100101How we can do this in R and python?See More
Jan 29
Neeraj Sharma posted a discussion

Merge row data

I have four columns in my data set like below:A       B      C       D0      NA    NA    NA0      NA    NA    NANA    1      NA    NANA    0      NA    NANA   NA     0      NANA   NA     1      NANA   NA    NA     0NA   NA    NA     1I want to merge all columns in one column and want the output as below:A00100101How we can do this in R and python?See More
Jan 29
Neeraj Sharma commented on Vincent Granville's blog post The Mathematics of Machine Learning
"Very good post and appropriate example. Because he has explained each and every slide in a very simple way. I have gone through whole course and didn't felt anything which was difficult to understand. Actually no one really need higher degree…"
Jan 12
Neeraj Sharma replied to Sahil Sikka's discussion Combining data from different sources into a data set
"As you are collecting the same kind of data from different resources , they should have some common attribute which can be figured out by looking at data. It will be good if you can share some sample data. I believe there is no standard way to merge…"
Jun 5, 2017

Profile Information

Short Bio
Working till now on JAVA but very much passionate for data analysis. From last 8 months going through various courses for data science. Trying hard to work full time on data analysis.
My Web Site Or LinkedIn Profile
http://https://www.linkedin.com/in/neeraj-sharma-00788ba/
Field of Expertise
Analytics
Professional Status
Technical
Years of Experience:
10
Your Company:
Cisco
Industry:
Software
Your Job Title:
SE III
How did you find out about DataScienceCentral?
via articles posted on Linked In
Interests:
Finding a new position, Networking, New venture
What is your Favorite Data Mining or Analytical Website?
http://www.datasciencecentral.com/,https://www.r-bloggers.com,https...
What Other Analytical Website do you Recommend?
http://https://www.datascienceweekly.org/

Comment Wall

You need to be a member of Data Science Central to add comments!

Join Data Science Central

  • No comments yet!
 
 
 

Follow Us

Videos

  • Add Videos
  • View All

Resources

© 2018   Data Science Central   Powered by

Badges  |  Report an Issue  |  Privacy Policy  |  Terms of Service