Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

Data merging in python(Data Minig)

$
0
0

@rock_bt wrote:

Hey All,
Can anyone help me to know why data value(No. of rows) is less after merging, and how i can get the all data of GEN_3 with merge one column from P_List.
Note: In both the file one "Key"column is there.

Input:
GEN_3=  pd.read_csv("~/Dec.csv",encoding="iso-8859-1")
P_List = pd.read_csv("~/P_List.csv",encoding="iso-8859-1")
print(GEN_3.shape)
GEN_Mer = pd.merge(GEN_3,P_List)
print(GEN_Mer.shape)

Output:
(442155, 8)
(377761, 9)

Thank You

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles