0

I'm reading a csv file and it has 3 columns: one indicates a database table name, other indicates the size of that table and the last column is the log date. It looks something like the image below and below that is how I want my graph to look like:

import pandas as pd

data = {'table_name': ['x_table', 'x_table', 'y_table', 'y_table', 'z_table', 'z_table'], 'size_mb': [3, 5, 4, 7, 2, 6],
        'log_date': [pd.Timestamp('2020-05-22 08:00:00'), pd.Timestamp('2020-05-23 08:00:00'), pd.Timestamp('2020-05-22 08:00:00'),
                     pd.Timestamp('2020-05-23 08:00:00'), pd.Timestamp('2020-05-22 08:00:00'), pd.Timestamp('2020-05-23 08:00:00')]}
df = pd.DataFrame(data)

example of what table looks like

how i want the graph

How can I do this?

Trenton McKinney
  • 43,885
  • 25
  • 111
  • 113
halid.sert
  • 53
  • 1
  • 7

0 Answers0