How To Remove URLs And Special Characters In Dataframe

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

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

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

    They show this differently on the actual pandas guide. They show the operation on column headings, but don’t show them using brackets for selecting the column contents, which is what I needed. This works for the data in your columns(series). 👍🏼😁

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

    Bro, THANK YOU very much. I seriously struggled with the text preprocessing part because nothing that I tried before worked. And all I had to do here was to add a little regex=True and everything worked first try. THANK YOU SIR!

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

      Thanks, hope to you in my another videos

  • @Studio-gs7ye
    @Studio-gs7ye 2 ปีที่แล้ว +1

    Thanks bro, your method is working👌👍🙏

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

      Thanks so much, welcome

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

    Thank you so much. Very useful tutorial. I have a question that how could I keep only the urls and remove all text? In some cases, the text is between 2 URLs for example

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

    it works!thank you very much

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

      Wow, really ? Am so excited ....

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

      Welcome

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

    Nice! Thanks!

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

      Hope you enjoy, you're welcome for more .......

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

    i got this error. AttributeError: 'DataFrame' object has no attribute 'str'

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

    i need help i only want to remove Special Characters not the spaces. what do i need to do?

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

    I got this error: FutureWarning: The default value of regex will change from True to False in a future version.

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

      And only "" was deleted, the rest of the url is still there :(

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

      Someone else encountered this error and he sove by adding regex=Treu. like dframe['colname'] = dframe['colname'].str.replace(r'\D+', regex=True), can you please try to add that option inside replace function