Daniel Kim
03/24/2021, 3:51 PMMichael Lynton
03/24/2021, 4:29 PMcreate_dagster_pandas_dataframe_type
and got my first one working 🙌🏼. Is there a built-in way for the dataframe validation to fail if there is a column that’s not defined in the ‘dataframe type’? If so, I’d love to see an example of how that’s done.Daniel Kim
03/24/2021, 6:06 PM<http://context.log.info|context.log.info>(df_final.sample(n=5).transpose())
Error message:
dagster.core.errors.DagsterExecutionStepExecutionError: Error occurred while executing solid "feature_selection":
File "D:\Python38\envs\ashli_dev\lib\site-packages\dagster\core\execution\plan\execute_plan.py", line 190, in _dagster_event_sequence_for_step
for step_event in check.generator(step_events):
File "D:\Python38\envs\ashli_dev\lib\site-packages\dagster\core\execution\plan\execute_step.py", line 311, in core_dagster_event_sequence_for_step
for user_event in check.generator(
File "D:\Python38\envs\ashli_dev\lib\site-packages\dagster\core\execution\plan\execute_step.py", line 70, in _step_output_error_checked_user_event_sequence
for user_event in user_event_sequence:
File "D:\Python38\envs\ashli_dev\lib\site-packages\dagster\core\execution\plan\execute_step.py", line 596, in _user_event_sequence_for_step_compute_fn
for event in iterate_with_context(
File "D:\Python38\envs\ashli_dev\lib\site-packages\dagster\utils\__init__.py", line 363, in iterate_with_context
return
File "D:\Python38\lib\contextlib.py", line 131, in __exit__
self.gen.throw(type, value, traceback)
File "D:\Python38\envs\ashli_dev\lib\site-packages\dagster\core\errors.py", line 197, in user_code_error_boundary
raise error_cls(
The above exception was caused by the following exception:
dagster.check.ParameterCheckError: Param "msg" is not a str. Got 681 214 212 230 521
Parch 0 0 0 0 0
Fare 76.7292 7.75 7.25 83.475 7.8958
Embarked C Q S S S
Sex male male male female male
Name Hassab, Mr. Hammad Kiernan, Mr. Philip Perkin, Mr. John Henry Harris, Mrs. Henry Birkhardt (Irene Wallach) Vovk, Mr. Janko
Age 27 NaN 22 35 22
Survived 1 0 0 1 0 which is type <class 'pandas.core.frame.DataFrame'>.
However, I get no error if I do:
<http://context.log.info|context.log.info>(f"5 random rows: \n {df_final.sample(n=5).transpose()}")
I get the output that I expect.
With Python's standard lib logger, I can output a partial dataframe without using f-string or having to convert to string.Eduardo Santizo
03/24/2021, 9:27 PMKing Chung Huang
03/25/2021, 3:08 PMworkspace.yaml
instead of manually listing each one.user
03/26/2021, 2:10 AMGaetan DELBART
03/26/2021, 8:01 AMJoe
03/26/2021, 11:04 AMAlex Despotakis
03/26/2021, 7:22 PMBrentT
03/27/2021, 3:03 PMRubén Lopez Lozoya
03/27/2021, 3:05 PMArun Kumar
03/28/2021, 2:21 AMMichael Ward
03/28/2021, 1:38 PMMichael Ward
03/28/2021, 1:39 PMSpandan Pyakurel
03/29/2021, 2:51 PMMehdi Nazari
03/29/2021, 3:24 PMAlessandro Marrella
03/29/2021, 3:40 PMMax
03/29/2021, 4:35 PMJeff Hulbert
03/29/2021, 5:24 PMMax
03/29/2021, 5:33 PMDaniel Kim
03/30/2021, 1:01 AMload_from:
- python_file:
relative_path: sc_repositories.py
executable_path: /path_to_my/python
to:
load_from:
- python_file:
relative_path: repositories/sc_repositories.py
executable_path: /path_to_my/python
I get an error that it can't find sc_repositories.py
file because it is looking for it in the original location. So I am baffled by this since in my workspace.yaml file, I told it that it is now in the repositories folder as indicated above. Not knowing what to do after looking at the documentation, I then deleted the tables in the Postgres database. Then after executing dagster-daemon run
again, I no longer get the error message. So apparently the location of my repository is being hard-coded/saved or persisted in the Postgres backend, is that right? I looked at the documentation for dagster daemon, but didn't find any mention about this.J
03/30/2021, 4:26 AMAmber Papillon
03/30/2021, 1:23 PMFredrik Bengtsson
03/30/2021, 2:12 PMAmber Papillon
03/30/2021, 2:42 PMAlessandro Marrella
03/30/2021, 4:16 PMenv
in my userDeployment but no luck with that (i see it in the configmap, but if i reference it from my sensor it fails)Michael Lynton
03/31/2021, 6:00 PMJ
04/01/2021, 4:55 AMdagster_aws.s3.sensor.get_s3_keys
function?Sasha Gorelikov
04/01/2021, 9:58 AMBen Torvaney
04/01/2021, 11:56 AMsetup.py
vs requirements.txt
for dagster(+dagit) projects?
I’ve seen both used for Flask/Django applications - is there a best practice I should be aware of?