Skip to content

Commit

Permalink
added another test
Browse files Browse the repository at this point in the history
  • Loading branch information
kthyng committed Apr 28, 2023
1 parent c5dec82 commit 0b991b4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_accessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,9 @@ def test_index():
df = pd.DataFrame(index=["m_time"])
df.index.rename("m_time", inplace=True)
assert df.cf["T"].name == "m_time"


def test_cols():
df = pd.DataFrame(columns=["m_time", "lon", "lat", "temp"])
assert df.cf.axes_cols == ["m_time"]
assert sorted(df.cf.coordinates_cols) == ["lat", "lon", "m_time"]

0 comments on commit 0b991b4

Please sign in to comment.