0

I want to use jointplot from seaborn. I am using the following code but I do not Understand sns.jointplot command. I want in X axis to have g and in y axis to have Years.

import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
    
df = pd.read_csv('My.txt', sep="\t", header=None)
df.info
print(df)
  
Years=df[0]
date=df[1]
Lat=df[2]
Lon=df[3]
D=df[4]
g=df[5]
flaxel
  • 4,173
  • 4
  • 17
  • 30
Ivan Roma
  • 7
  • 1
  • 5

1 Answers1

0
sns.jointplot(data=df, x=5 y=0)

should work? Otherwise, you will need to provide a Minimal, Complete, and Verifiable example that includes a toy dataset (refer to How to make good reproducible pandas examples)

Diziet Asahi
  • 38,379
  • 7
  • 60
  • 75