Skip to content

Commit

Permalink
numpy pandas homework
Browse files Browse the repository at this point in the history
  • Loading branch information
kotaro9808 committed Jan 3, 2024
1 parent 2be6b75 commit 835529d
Show file tree
Hide file tree
Showing 5 changed files with 97 additions and 3 deletions.
36 changes: 35 additions & 1 deletion 2023/homework/Zhao_ShaoDong/231203_numpy/choose.md
Original file line number Diff line number Diff line change
@@ -1 +1,35 @@
## 1. C.
## 1. C


## 2. D


## 3. B
one dimensional array


## 4. E


## 5. C
d[1,2] is the third element of second set of d


## 6. C
5+8


## 7. E
lengths of arrays are not equal


## 8. C
1+3 + 1+3+3


## 9. C
axis=1 mean adding in row direction, 0 for column direction


## 10. E
array is one dimensional, but two indices
10 changes: 10 additions & 0 deletions 2023/homework/Zhao_ShaoDong/231203_numpy/numpy_submit.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
C
D
B
E
C
C
E
C
C
E
38 changes: 38 additions & 0 deletions 2023/homework/Zhao_ShaoDong/231203_pandas/choose.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
## 1. B
When you select a single column, you are essentially extracting a one-dimensional structure, which is represented as a Series in pandas.

## 2. D


## 3. C


## 4. A


## 5. B


## 6. D


## 7. A


## 8. C


## 9. C
??? a mistake


## 10. D


## 11. B


## 12. B



12 changes: 12 additions & 0 deletions 2023/homework/Zhao_ShaoDong/231203_pandas/pandas_submit.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
B
D
C
A
B
D
A
C
C
D
B
B
4 changes: 2 additions & 2 deletions 2023/homework/Zhao_ShaoDong/231203_python/select_answer.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def extract_choices_from_file(inputfile_path,outputfile_path):


# example
inputfile_path = 'choose.md'
outputfile_path = 'test.txt'
inputfile_path = './231203_pandas/choose.md'
outputfile_path = './231203_pandas/pandas_submit.txt'
result = extract_choices_from_file(inputfile_path,outputfile_path)

0 comments on commit 835529d

Please sign in to comment.