Skip to content

Б12-514, Осколков Олег#152

Open
OskolkovOleg wants to merge 18 commits into
EvgrafovMichail:mainfrom
OskolkovOleg:main
Open

Б12-514, Осколков Олег#152
OskolkovOleg wants to merge 18 commits into
EvgrafovMichail:mainfrom
OskolkovOleg:main

Conversation

@OskolkovOleg
Copy link
Copy Markdown

No description provided.

@Avshugan Avshugan added the 514 label Mar 9, 2026
) -> None:
# ваш код
pass
if abscissa.shape != ordinates.shape:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Слишком большая функция получилась, тяжело читать код. Так еще и много повторяющегося кода

def count_by_stage(records: list) -> np.ndarray:
stages = ["I", "II", "III", "IV"]
counts = np.zeros(len(stages), dtype=int)
for record in records:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Почему бы не использовать records.count?

from matplotlib.animation import FuncAnimation


def compute_signal(time: np.ndarray, modulation, fc: float) -> np.ndarray:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

После дедлайна

from matplotlib.animation import FuncAnimation


from functools import partial
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

После дедлайна

"outputs": [],
"source": [
"# ваш код"
"titanic_data.isnull().sum()"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

В части 2 можно было использовать аргумент inplace=True

"outputs": [],
"source": [
"# ваш код"
"titanic_data.isnull().sum()"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

В части 3, как будто можно было сделать циклом и код был бы проще и не было столько повторений одного и того же кода

) -> None:
# ваш код
pass
if abscissa.shape != ordinates.shape:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Нет названия графика, подписей к осям и легенды

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants