inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

negigulshan903님의 게시글

negigulshan903 negigulshan903

@negigulshan9037735

수강평 작성수
-
평균평점
-

게시글 3

질문&답변

자바 클래스 선언 오류

Well, here is the simple example how to declare class in Java. public class Person { // Class members (fields, methods, constructors, etc.) go here // Example field (instance variable) private String name; // Example constructor public Person(String name) { this.name = name; } // Example method public void sayHello() { System.out.println("Hello, my name is " + name); } } Thanks

좋아요수
0
댓글수
1
조회수
321

질문&답변

Python: Select Interpreter

Hello, this is Gulshan Negi Well, it may be because of incorrect Python path settings, a missing Python extension, workspace-specific settings overriding the interpreter selection, working with virtual environments, or an incompatible Python version. To fix this issue, you can verify that Python 3.8.5 is properly installed on your system by running the command "python --version" in the command line. Thanks

좋아요수
0
댓글수
2
조회수
403

질문&답변

df.sum() 과 sum(df) 차이가 뭔가요?

Hello this is Gulshan Negi Well, I search about it on internet and in short I can say. The main difference between df.sum() and sum(df) is their usage and the objects they operate on. df.sum() is a pandas DataFrame method that calculates the sum of each column by default. It returns a new pandas Series object containing the column-wise sums. It provides flexibility in specifying the axis of summation and handling missing or non-numeric values appropriately. On the other hand, sum(df) is a built-in Python function that attempts to iterate over the columns of a data frame and calculate their sum. However, this usage might not work as intended because DataFrames are not inherently iterable in the same way as Python lists or tuples. Thanks

좋아요수
0
댓글수
2
조회수
1003