Skip to content

Commit

Permalink
Merge pull request #16 from giswqs/main
Browse files Browse the repository at this point in the history
Fix broken URLs of example datasets

Former-commit-id: 21afcee397f64bc7d530c38fa5b24abb6aa0e1c5 [formerly 037085d]
Former-commit-id: 83ce530ad013954643b05dc6ffba298a9f2829f5
  • Loading branch information
JackMcKew authored Sep 6, 2020
2 parents fb60861 + e396ce9 commit b87ced8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
Binary file added examples/example-line-chart.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion examples/example-line-chart.gif.REMOVED.git-id

This file was deleted.

4 changes: 2 additions & 2 deletions pandas_alive/_base_chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def validate_params(self):
)
if self.writer not in manimation.writers.list():
raise RuntimeError(
f"Ensure that a matplotlib writer library is installed, list of available writer librarys {manimation.writers.list()}, see https://github.com/JackMcKew/pandas_alive/blob/master/README.md#requirements for more details"
f"Ensure that a matplotlib writer library is installed, list of available writer librarys {manimation.writers.list()}, see https://github.com/JackMcKew/pandas_alive/blob/main/README.md#requirements for more details"
)

def get_period_label(
Expand Down Expand Up @@ -595,7 +595,7 @@ def save(self, filename: str) -> None:

except TypeError as e:
raise RuntimeError(
"Ensure that a matplotlib writer library is installed, see https://github.com/JackMcKew/pandas_alive/blob/master/README.md#requirements for more details"
"Ensure that a matplotlib writer library is installed, see https://github.com/JackMcKew/pandas_alive/blob/main/README.md#requirements for more details"
)

# def encode_html5_video(self,anim):
Expand Down
2 changes: 1 addition & 1 deletion pandas_alive/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def load_dataset(name: str = "covid19") -> pd.DataFrame:
"""

return pd.read_csv(
f"https://raw.githubusercontent.com/JackMcKew/pandas_alive/master/data/{name}.csv",
f"https://raw.githubusercontent.com/JackMcKew/pandas_alive/main/data/{name}.csv",
index_col=0,
parse_dates=[0],
)

0 comments on commit b87ced8

Please sign in to comment.