Answers for "uniqe points in a column pandas"

0

uniqe points in a column pandas

df[clumn]
Posted by: Guest on May-29-2021
0

uniqe points in a column pandas

# Import pandas package 
import pandas as pd
  
# create a dictionary with five fields each
data = {
    'A':['A1', 'A2', 'A3', 'A4', 'A5'], 
    'B':['B1', 'B2', 'B3', 'B4', 'B4'], 
    'C':['C1', 'C2', 'C3', 'C3', 'C3'], 
    'D':['D1', 'D2', 'D2', 'D2', 'D2'], 
    'E':['E1', 'E1', 'E1', 'E1', 'E1'] }
  
# Convert the dictionary into DataFrame 
df = pd.DataFrame(data)
  
# Get the unique values of 'E' column
df.E.unique()
Posted by: Guest on May-29-2021

Python Answers by Framework

Browse Popular Code Answers by Language