Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draw chart without date #521

Closed
a-Rahmati opened this issue Apr 14, 2022 · 4 comments
Closed

Draw chart without date #521

a-Rahmati opened this issue Apr 14, 2022 · 4 comments
Labels
question Further information is requested

Comments

@a-Rahmati
Copy link

Hello,

Is it possible to not have a date index in DataFrame?

Thaks

@a-Rahmati a-Rahmati added the question Further information is requested label Apr 14, 2022
@DanielGoldfarb
Copy link
Collaborator

What kind of a chart do you want to draw?

  • What data is on your x-axis?
  • What data is on your y-axis?

@a-Rahmati
Copy link
Author

I have a DataFrame like this:
Selection_324

There's no date index So I get an error:

TypeError: Expect data.index as DatetimeIndex

I want to draw a plot like this:
Selection_325

@DanielGoldfarb
Copy link
Collaborator

Just to clarify,

  1. Do you have any column that includes date or time?
  2. Are you saying that even if you have a datetime column you would still prefer to display row numbers on the x-axis?

@DanielGoldfarb
Copy link
Collaborator

If the answer to 2. above is yes, that is, you want to display row numbers on the x-axis, the this answer may be helpful for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants