Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Melt or Slice
#1
Using the following dataset : https://www.kaggle.com/jessevent/all-crypto-currencies

I'm trying to isolate two crypto (Bitcoin and Ethereum) currencies and pick a date to compare using a plot.

I'm using pandas Do I need to melt or do I need to slice the dataframe to do this, or is there an alternative option.

The index looks like this, so I want to run a time series plot for the two cryptos, any help appreciated.

slug symbol name date ranknow open high low close volume market close_ratio spread

I can group by open and close but not by the symbol.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Help to control pandas.melt function vanphuht91 0 672 Jun-17-2023, 08:41 AM
Last Post: vanphuht91
  Inserting slice of array objects into different slice ThemePark 4 2,484 Apr-01-2020, 01:10 PM
Last Post: ThemePark
  slice per group Progressive 3 5,285 Jul-20-2019, 06:52 AM
Last Post: scidam
  TypeError: '(slice(None, None, None), 0)' is an invalid key zaki424160 1 15,133 Jul-17-2019, 11:53 PM
Last Post: scidam
  Pandas melt only on one variable (leaving other in long format) amyd 0 1,934 May-08-2019, 12:10 PM
Last Post: amyd

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020