Financial Data Science Financial Performance Analysis: Difference between revisions
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
import matplotlib.pyplot as plt | import matplotlib.pyplot as plt | ||
import matplotlib.ticker as ptick | import matplotlib.ticker as ptick | ||
# load the DataFrame | |||
df = pd.read_csv("./data.csv", parse_dates=["date"]) | |||
# make it a time series DataFrame | |||
df.set_index('date') | |||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 22:50, 20 October 2023
Internal
Overview
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib.ticker as ptick
# load the DataFrame
df = pd.read_csv("./data.csv", parse_dates=["date"])
# make it a time series DataFrame
df.set_index('date')