Seaborn Tutorial - Part 1: RELPLOT: Scatter Plots

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ต.ค. 2024

ความคิดเห็น • 4

  • @raziehshahsavar9649
    @raziehshahsavar9649 2 ปีที่แล้ว +1

    خوشحالم آشنا شدم با شما که از پایه دارین یاد میدین، من البته خیلی نیاز به آموزش دیپ لرنینگ دارم و امیدوارم حوزه شما به این حوزه برسه

    • @AmirCharkhi
      @AmirCharkhi  2 ปีที่แล้ว

      ممنونم راضیه جان، هدف من شروع از پایه ترین مسائل هست و خیلی زود به ماشین لرنینگ و دیپ لرنسنگ میرسم. براتون آرزوی موفقیت دارم و اگر محتوا رو دوست داشتین لطفا به دوستان دیگر معرفی کنید. ممنونم از توجهتون

  • @javirodriguez5795
    @javirodriguez5795 2 ปีที่แล้ว

    I have used this function. But I dont use hue in the function I use instead col so I can have one type in the left graph and other type in the right graph. But they are the same color because I dont use hue. I want to keep it like that, but change the colors of the graph of the left and the graph of the left. The palette does not function beacuse it only applies to the hue. How can I change the color mantaining the same line? Any tip? Thanks in advance!

    • @AmirCharkhi
      @AmirCharkhi  ปีที่แล้ว

      Thanks for your great questions mate, but just curious to understand why you do not want to use the `hue` variable as you can easily use the relplot. set the variable you want to separate graphs based in the `col` variable, and then use the same variable as `hue` so that the colors will be different.
      It woould look like this:
      `sns.relplot(data=tips, x='total_bill', y='tip', col='sex', hue='sex')`
      This will give you two graphs, one for Male (in blue) and the other for Female (in orange).
      If instead of `hue` you use `palette` it is not going to do anything as palette maps to hue.
      Let me know if this helps :)