[LeetCode] Pandas / 2878. Get the size of a DataFrame
2024. 7. 8. 14:34ㆍCoding/LeetCode-Pandas
문제 링크
https://leetcode.com/problems/get-the-size-of-a-dataframe/
문제
코드
import pandas as pd
def getDataframeSize(players: pd.DataFrame) -> List[int]:
return [players.shape[0], players.shape[1]]
'Coding > LeetCode-Pandas' 카테고리의 다른 글
[LeetCode] Pandas / 2882. Drop duplicate rows (0) | 2024.07.08 |
---|---|
[LeetCode] Pandas / 2881. Create a new column (0) | 2024.07.08 |
[LeetCode] Pandas / 2880. Select Data (0) | 2024.07.08 |
[LeetCode] Pandas / 2879. Display the first three rows (0) | 2024.07.08 |
[LeetCode] Pandas / 2877. Create a DataFrame from List (0) | 2024.07.08 |